From: Greg Kroah-Hartman Date: Thu, 2 Dec 2010 20:04:59 +0000 (-0800) Subject: Staging: hv: remove gDriver variable X-Git-Tag: firefly_0821_release~7613^2~3069^2~143 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0bdb250c69251499f53a4ac6f9dae117da490696;p=firefly-linux-kernel-4.4.55.git Staging: hv: remove gDriver variable It's only set and never used anymore, so remove it. Gotta love static variables with a "global" hungarian notatation on the name... Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 01b9a3dc00d6..b18fa53f3a24 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -145,7 +145,6 @@ static const struct hv_guid gVmbusDeviceId = { } }; -static struct hv_driver *gDriver; /* vmbus driver object */ static struct hv_device *gDevice; /* vmbus root device */ /* @@ -326,8 +325,6 @@ static int VmbusInitialize(struct hv_driver *driver) if (ret != 0) DPRINT_ERR(VMBUS, "Unable to initialize the hypervisor - 0x%x", ret); - gDriver = driver; - return ret; }