mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 19:26:01 -04:00
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: Sudip Mukherjee <sudip@vectorindia.org> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb79db2b59
commit
8b82fa8388
@@ -76,9 +76,7 @@ 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);
|
||||
}
|
||||
unregister_chrdev_region(major_dev, 1);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user