Skip to content

Commit

Permalink
staging: unisys: remove global dev_t
Browse files Browse the repository at this point in the history
the global variable majordev is no longer required, as it is not being
used anywhere.

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 addceb1 commit eb79db2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/unisys/visorchipset/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

static struct cdev file_cdev;
static struct visorchannel **file_controlvm_channel;
static dev_t majordev = -1; /**< indicates major num for device */

static int visorchipset_open(struct inode *inode, struct file *file);
static int visorchipset_release(struct inode *inode, struct file *file);
Expand All @@ -54,7 +53,6 @@ visorchipset_file_init(dev_t major_dev, struct visorchannel **controlvm_channel)
int rc = 0;

file_controlvm_channel = controlvm_channel;
majordev = major_dev;
cdev_init(&file_cdev, &visorchipset_fops);
file_cdev.owner = THIS_MODULE;
if (MAJOR(major_dev) == 0) {
Expand All @@ -80,7 +78,6 @@ visorchipset_file_cleanup(dev_t major_dev)
file_cdev.ops = NULL;
if (MAJOR(major_dev) >= 0) {
unregister_chrdev_region(major_dev, 1);
majordev = MKDEV(0, 0);
}
}

Expand Down

0 comments on commit eb79db2

Please sign in to comment.