Skip to content

Commit

Permalink
HID: intel-ish-hid: Remove unnecessary assignment to variable rv
Browse files Browse the repository at this point in the history
This assignment to rv is unused in an error path. So remove it.

Signed-off-by: Jing Xiangfeng <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
hiss2018 authored and Jiri Kosina committed Nov 25, 2020
1 parent d5530d8 commit 9735d9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/hid/intel-ish-hid/ishtp-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ int ishtp_hid_probe(unsigned int cur_hid_dev,
struct ishtp_hid_data *hid_data;

hid = hid_allocate_device();
if (IS_ERR(hid)) {
rv = PTR_ERR(hid);
return -ENOMEM;
}
if (IS_ERR(hid))
return PTR_ERR(hid);

hid_data = kzalloc(sizeof(*hid_data), GFP_KERNEL);
if (!hid_data) {
Expand Down

0 comments on commit 9735d9d

Please sign in to comment.