Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267979
b: refs/heads/master
c: 6a18097
h: refs/heads/master
i:
  267977: 5894e3b
  267975: 37f693e
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Aug 25, 2011
1 parent 46ece34 commit edee3af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ab0871ddd1bfdc514f93472cfd68290ecdb62c0
refs/heads/master: 6a180978aea7cb231c60b69b078ec339f40e2faa
10 changes: 2 additions & 8 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,10 @@ static int mousevsc_probe(struct hv_device *dev)

static int mousevsc_remove(struct hv_device *dev)
{
int ret = 0;

struct input_device_context *input_dev_ctx;
int ret;

input_dev_ctx = kmalloc(sizeof(struct input_device_context),
GFP_KERNEL);

dev_set_drvdata(&dev->device, input_dev_ctx);

input_dev_ctx = dev_get_drvdata(&dev->device);
if (input_dev_ctx->connected) {
hidinput_disconnect(input_dev_ctx->hid_device);
input_dev_ctx->connected = 0;
Expand All @@ -866,7 +861,6 @@ static int mousevsc_remove(struct hv_device *dev)
* is being removed
*/
ret = mousevsc_on_device_remove(dev);

if (ret != 0) {
DPRINT_ERR(INPUTVSC_DRV,
"unable to remove vsc device (ret %d)", ret);
Expand Down

0 comments on commit edee3af

Please sign in to comment.