Commit ee9b9b81 authored by Nijam Haider's avatar Nijam Haider Committed by Greg Kroah-Hartman

char: pcmcia: scr24x_cs: Fix redundant fops

Removed redundant fops assignment, which was already done in cdev_init()
Signed-off-by: default avatarNijam Haider <nizamhaider786@gmail.com>
Link: https://lore.kernel.org/r/20210524215202.495-2-nizamhaider786@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 37188559
...@@ -265,7 +265,6 @@ static int scr24x_probe(struct pcmcia_device *link) ...@@ -265,7 +265,6 @@ static int scr24x_probe(struct pcmcia_device *link)
cdev_init(&dev->c_dev, &scr24x_fops); cdev_init(&dev->c_dev, &scr24x_fops);
dev->c_dev.owner = THIS_MODULE; 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); ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1);
if (ret < 0) if (ret < 0)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment