summaryrefslogtreecommitdiff
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorJon Frisch <jon.frisch@unisys.com>2016-09-19 17:09:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 13:26:20 +0200
commitfbd5232109491118eba16773ea2db39b223edde3 (patch)
treeecd57c42d4cf86c3c13a8836cb71aba37c574762 /drivers/staging/unisys
parent41ef5e5a4ad5044841296098b90b4f9da0d264f4 (diff)
staging: unisys: visorbus: remove unused long long bus_count
This patch removes the unused long long bus_count. Signed-off-by: Jon Frisch <jon.frisch@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index fe5fc2149024..8ed60c0d107b 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -111,9 +111,6 @@ struct bus_type visorbus_type = {
.bus_groups = visorbus_bus_groups,
};
-static long long bus_count; /* number of bus instances */
- /* ever-increasing */
-
/* filled in with info about parent chipset driver when we register with it */
static struct ultra_vbus_deviceinfo chipset_driverinfo;
/* filled in with info about this driver, wrt it servicing client busses */
@@ -1070,7 +1067,6 @@ create_bus_instance(struct visor_device *dev)
} else {
kfree(hdr_info);
}
- bus_count++;
list_add_tail(&dev->list_all, &list_all_bus_instances);
dev_set_drvdata(&dev->device, dev);
return 0;
@@ -1091,7 +1087,6 @@ remove_bus_instance(struct visor_device *dev)
* successfully been able to trace thru the code to see where/how
* release() gets called. But I know it does.
*/
- bus_count--;
if (dev->visorchannel) {
visorchannel_destroy(dev->visorchannel);
dev->visorchannel = NULL;