Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b82fa83 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

staging: unisys: remove comparison



the comparison is always true as the dev_t has been initialized in the
init function and we are sending that initialized dev_t to the
cleanup().

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb79db2b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -76,10 +76,8 @@ visorchipset_file_cleanup(dev_t major_dev)
	if (file_cdev.ops != NULL)
		cdev_del(&file_cdev);
	file_cdev.ops = NULL;
	if (MAJOR(major_dev) >= 0) {
	unregister_chrdev_region(major_dev, 1);
}
}

static int
visorchipset_open(struct inode *inode, struct file *file)