From: Sudip Mukherjee Date: Tue, 24 Mar 2015 15:17:30 +0000 (+0530) Subject: staging: unisys: remove comparison X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8b82fa8388db5ccd50bad172d3e885dcea22596d;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Dan Carpenter Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorchipset/file.c b/drivers/staging/unisys/visorchipset/file.c index 890869ad36f4..39b19afa5169 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