Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268668
b: refs/heads/master
c: 8660e38
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent b8b7086 commit ed8d2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 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: 1486dd0d0a95de1aaedd17ece19d9263ce7e5192
refs/heads/master: 8660e38fab8b8a39ac828fb8a8579a9ad1b5d59d
34 changes: 1 addition & 33 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,32 +203,6 @@ static void free_input_device(struct mousevsc_dev *device)
kfree(device);
}

/*
* Get the inputdevice object if exists and its refcount > 1
*/
static struct mousevsc_dev *get_input_device(struct hv_device *device)
{
struct mousevsc_dev *input_dev;

input_dev = hv_get_drvdata(device);

/*
* FIXME
* This sure isn't a valid thing to print for debugging, no matter
* what the intention is...
*
* printk(KERN_ERR "-------------------------> REFCOUNT = %d",
* input_dev->ref_count);
*/

if (input_dev && atomic_read(&input_dev->ref_count) > 1)
atomic_inc(&input_dev->ref_count);
else
input_dev = NULL;

return input_dev;
}

/*
* Get the inputdevice object iff exists and its refcount > 0
*/
Expand Down Expand Up @@ -520,15 +494,10 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
{
int ret = 0;
int t;
struct mousevsc_dev *input_dev;
struct mousevsc_dev *input_dev = hv_get_drvdata(device);
struct mousevsc_prt_msg *request;
struct mousevsc_prt_msg *response;

input_dev = get_input_device(device);

if (!input_dev)
return -ENODEV;


request = &input_dev->protocol_req;

Expand Down Expand Up @@ -584,7 +553,6 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
ret = -ENOMEM;

cleanup:
put_input_device(device);

return ret;
}
Expand Down

0 comments on commit ed8d2d4

Please sign in to comment.