summaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia
diff options
context:
space:
mode:
authorNijam Haider <nizamhaider786@gmail.com>2021-05-25 03:22:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-27 14:46:13 +0200
commitee9b9b81ecd744504bbf1c50d86db8251cc7e41e (patch)
treeac5d11c6ae7f96592d88e9885f61b73ff74627c0 /drivers/char/pcmcia
parent37188559c610f1b7eec83c8e448936c361c578de (diff)
downloadlinux-stable-ee9b9b81ecd744504bbf1c50d86db8251cc7e41e.tar.gz
linux-stable-ee9b9b81ecd744504bbf1c50d86db8251cc7e41e.tar.bz2
linux-stable-ee9b9b81ecd744504bbf1c50d86db8251cc7e41e.zip
char: pcmcia: scr24x_cs: Fix redundant fops
Removed redundant fops assignment, which was already done in cdev_init() Signed-off-by: Nijam Haider <nizamhaider786@gmail.com> Link: https://lore.kernel.org/r/20210524215202.495-2-nizamhaider786@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r--drivers/char/pcmcia/scr24x_cs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/scr24x_cs.c b/drivers/char/pcmcia/scr24x_cs.c
index 47feb39af34c..1bdce08fae3d 100644
--- a/drivers/char/pcmcia/scr24x_cs.c
+++ b/drivers/char/pcmcia/scr24x_cs.c
@@ -265,7 +265,6 @@ static int scr24x_probe(struct pcmcia_device *link)
cdev_init(&dev->c_dev, &scr24x_fops);
dev->c_dev.owner = THIS_MODULE;
- dev->c_dev.ops = &scr24x_fops;
ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1);
if (ret < 0)
goto err;