Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325486
b: refs/heads/master
c: 24db0d7
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Jonathan Cameron committed Sep 18, 2012
1 parent efa5946 commit 7dc2245
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 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: 2b7c4b8e3edfd109a8423ff593a12a5fe09615b2
refs/heads/master: 24db0d75d3666b2aa5950a8bec0c1898929f2945
9 changes: 0 additions & 9 deletions trunk/drivers/hid/hid-sensor-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,6 @@ int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
int ret = 0;

if (report_id < 0)
return -EINVAL;

mutex_lock(&data->mutex);
report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
if (!report || (field_index >= report->maxfield)) {
Expand All @@ -241,9 +238,6 @@ int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
int ret = 0;

if (report_id < 0)
return -EINVAL;

mutex_lock(&data->mutex);
report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
if (!report || (field_index >= report->maxfield)) {
Expand Down Expand Up @@ -271,9 +265,6 @@ int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
struct hid_report *report;
int ret_val = 0;

if (report_id < 0)
return -EINVAL;

mutex_lock(&data->mutex);
memset(&data->pending, 0, sizeof(data->pending));
init_completion(&data->pending.ready);
Expand Down

0 comments on commit 7dc2245

Please sign in to comment.