Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Su Hui and committed by
Miquel Raynal
259b4d4c e1666cfd

+4 -4
+4 -4
drivers/mtd/devices/docg3.c
··· 1599 1599 */ 1600 1600 static int flashcontrol_show(struct seq_file *s, void *p) 1601 1601 { 1602 - struct docg3 *docg3 = (struct docg3 *)s->private; 1602 + struct docg3 *docg3 = s->private; 1603 1603 1604 1604 u8 fctrl; 1605 1605 ··· 1621 1621 1622 1622 static int asic_mode_show(struct seq_file *s, void *p) 1623 1623 { 1624 - struct docg3 *docg3 = (struct docg3 *)s->private; 1624 + struct docg3 *docg3 = s->private; 1625 1625 1626 1626 int pctrl, mode; 1627 1627 ··· 1658 1658 1659 1659 static int device_id_show(struct seq_file *s, void *p) 1660 1660 { 1661 - struct docg3 *docg3 = (struct docg3 *)s->private; 1661 + struct docg3 *docg3 = s->private; 1662 1662 int id; 1663 1663 1664 1664 mutex_lock(&docg3->cascade->lock); ··· 1672 1672 1673 1673 static int protection_show(struct seq_file *s, void *p) 1674 1674 { 1675 - struct docg3 *docg3 = (struct docg3 *)s->private; 1675 + struct docg3 *docg3 = s->private; 1676 1676 int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high; 1677 1677 1678 1678 mutex_lock(&docg3->cascade->lock);