Skip to content

Commit

Permalink
staging: unisys: remove comparison
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sudip Mukherjee authored and Greg Kroah-Hartman committed Mar 26, 2015
1 parent eb79db2 commit 8b82fa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/unisys/visorchipset/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b82fa8

Please sign in to comment.