aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudip Mukherjee <[email protected]>2015-03-24 20:47:29 +0530
committerGreg Kroah-Hartman <[email protected]>2015-03-27 00:01:23 +0100
commiteb79db2b59ce9acda94cd8f0e27cdba0bea0bad1 (patch)
treeb03fdc44b0b47423be680fce69a6217081866eb0
parentaddceb12a3ed62e50c842f4c8f6099e1ead29ba8 (diff)
staging: unisys: remove global dev_t
the global variable majordev is no longer required, as it is not being used anywhere. Signed-off-by: Sudip Mukherjee <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Benjamin Romer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/unisys/visorchipset/file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorchipset/file.c b/drivers/staging/unisys/visorchipset/file.c
index 257cfdd841d4..890869ad36f4 100644
--- a/drivers/staging/unisys/visorchipset/file.c
+++ b/drivers/staging/unisys/visorchipset/file.c
@@ -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);
@@ -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) {
@@ -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);
}
}