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

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.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 37188559
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;