summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-03-24 20:47:30 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-27 00:01:24 +0100
commit8b82fa8388db5ccd50bad172d3e885dcea22596d (patch)
tree2a8e6560d741a02247644f604a835c56c5422004 /drivers/staging/unisys
parenteb79db2b59ce9acda94cd8f0e27cdba0bea0bad1 (diff)
downloadop-kernel-dev-8b82fa8388db5ccd50bad172d3e885dcea22596d.zip
op-kernel-dev-8b82fa8388db5ccd50bad172d3e885dcea22596d.tar.gz
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>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorchipset/file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorchipset/file.c b/drivers/staging/unisys/visorchipset/file.c
index 890869a..39b19af 100644
--- a/drivers/staging/unisys/visorchipset/file.c
+++ b/drivers/staging/unisys/visorchipset/file.c
@@ -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
OpenPOWER on IntegriCloud