mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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>
This commit is contained in:
parent
37188559c6
commit
ee9b9b81ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user