aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-03-02 20:19:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-02 20:19:05 -0500
commite8290f9f73f9a53fbeffd8de8e30cafb41475ae2 (patch)
tree7f4a196b71f21ee8caf8ad1324b6faa38f5d9486 /drivers/staging/hv
parent76e63665c338069085c4e0ca1b2093dc26258d7a (diff)
Staging: hv: hv_mouse_drv.c: minor coding style cleanups
Knock off some of the simple coding style issues in this file Cc: Hank Janssen <hjanssen@microsoft.com> Cc: K. Y. Srinivasan <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/hv_mouse_drv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/hv/hv_mouse_drv.c b/drivers/staging/hv/hv_mouse_drv.c
index 760d21f6c19..55fc8c107cd 100644
--- a/drivers/staging/hv/hv_mouse_drv.c
+++ b/drivers/staging/hv/hv_mouse_drv.c
@@ -33,7 +33,6 @@
33#include <linux/pci.h> 33#include <linux/pci.h>
34#include <linux/dmi.h> 34#include <linux/dmi.h>
35 35
36//#include "osd.h"
37#include "hv_api.h" 36#include "hv_api.h"
38#include "logging.h" 37#include "logging.h"
39#include "version_info.h" 38#include "version_info.h"
@@ -152,9 +151,8 @@ int mousevsc_remove(struct device *device)
152 input_dev_ctx->connected = 0; 151 input_dev_ctx->connected = 0;
153 } 152 }
154 153
155 if (!mousevsc_drv_obj->Base.dev_rm) { 154 if (!mousevsc_drv_obj->Base.dev_rm)
156 return -1; 155 return -1;
157 }
158 156
159 /* 157 /*
160 * Call to the vsc driver to let it know that the device 158 * Call to the vsc driver to let it know that the device
@@ -238,8 +236,6 @@ int mousevsc_drv_init(int (*pfn_drv_init)(struct hv_driver *pfn_drv_init))
238 struct mousevsc_drv_obj *input_drv_obj = &g_mousevsc_drv.drv_obj; 236 struct mousevsc_drv_obj *input_drv_obj = &g_mousevsc_drv.drv_obj;
239 struct driver_context *drv_ctx = &g_mousevsc_drv.drv_ctx; 237 struct driver_context *drv_ctx = &g_mousevsc_drv.drv_ctx;
240 238
241// vmbus_get_interface(&input_drv_obj->Base.VmbusChannelInterface);
242
243 input_drv_obj->OnDeviceInfo = mousevsc_deviceinfo_callback; 239 input_drv_obj->OnDeviceInfo = mousevsc_deviceinfo_callback;
244 input_drv_obj->OnInputReport = mousevsc_inputreport_callback; 240 input_drv_obj->OnInputReport = mousevsc_inputreport_callback;
245 input_drv_obj->OnReportDescriptor = mousevsc_reportdesc_callback; 241 input_drv_obj->OnReportDescriptor = mousevsc_reportdesc_callback;
@@ -281,7 +277,9 @@ void mousevsc_drv_exit(void)
281 current_dev = NULL; 277 current_dev = NULL;
282 278
283 /* Get the device */ 279 /* Get the device */
284 ret = driver_for_each_device(&drv_ctx->driver, NULL, (void *)&current_dev, mousevsc_drv_exit_cb); 280 ret = driver_for_each_device(&drv_ctx->driver, NULL,
281 (void *)&current_dev,
282 mousevsc_drv_exit_cb);
285 if (ret) 283 if (ret)
286 printk(KERN_ERR "Can't find mouse device!\n"); 284 printk(KERN_ERR "Can't find mouse device!\n");
287 285