Skip to content

Commit 47cdd7f

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.11/intel-ish' into for-linus
2 parents 19a0b6d + 9735d9d commit 47cdd7f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/hid/intel-ish-hid/ishtp-hid.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,8 @@ int ishtp_hid_probe(unsigned int cur_hid_dev,
211211
struct ishtp_hid_data *hid_data;
212212

213213
hid = hid_allocate_device();
214-
if (IS_ERR(hid)) {
215-
rv = PTR_ERR(hid);
216-
return -ENOMEM;
217-
}
214+
if (IS_ERR(hid))
215+
return PTR_ERR(hid);
218216

219217
hid_data = kzalloc(sizeof(*hid_data), GFP_KERNEL);
220218
if (!hid_data) {

0 commit comments

Comments
 (0)