Skip to content

Commit

Permalink
Merge branch 'for-5.11/intel-ish' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Kosina committed Dec 16, 2020
2 parents 19a0b6d + 9735d9d commit 47cdd7f
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 47cdd7f

Please sign in to comment.