Skip to content

Commit 259b4d4

Browse files
Su Huimiquelraynal
authored andcommitted
mtd: devices: docg3: Remove unnecessary (void*) conversions
Pointer variables of (void*) type do not require type cast. Signed-off-by: Su Hui <suhui@nfschina.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230529015011.38811-1-suhui@nfschina.com
1 parent e1666cf commit 259b4d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mtd/devices/docg3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ static void doc_unregister_sysfs(struct platform_device *pdev,
15991599
*/
16001600
static int flashcontrol_show(struct seq_file *s, void *p)
16011601
{
1602-
struct docg3 *docg3 = (struct docg3 *)s->private;
1602+
struct docg3 *docg3 = s->private;
16031603

16041604
u8 fctrl;
16051605

@@ -1621,7 +1621,7 @@ DEFINE_SHOW_ATTRIBUTE(flashcontrol);
16211621

16221622
static int asic_mode_show(struct seq_file *s, void *p)
16231623
{
1624-
struct docg3 *docg3 = (struct docg3 *)s->private;
1624+
struct docg3 *docg3 = s->private;
16251625

16261626
int pctrl, mode;
16271627

@@ -1658,7 +1658,7 @@ DEFINE_SHOW_ATTRIBUTE(asic_mode);
16581658

16591659
static int device_id_show(struct seq_file *s, void *p)
16601660
{
1661-
struct docg3 *docg3 = (struct docg3 *)s->private;
1661+
struct docg3 *docg3 = s->private;
16621662
int id;
16631663

16641664
mutex_lock(&docg3->cascade->lock);
@@ -1672,7 +1672,7 @@ DEFINE_SHOW_ATTRIBUTE(device_id);
16721672

16731673
static int protection_show(struct seq_file *s, void *p)
16741674
{
1675-
struct docg3 *docg3 = (struct docg3 *)s->private;
1675+
struct docg3 *docg3 = s->private;
16761676
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;
16771677

16781678
mutex_lock(&docg3->cascade->lock);

0 commit comments

Comments
 (0)