We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19a0b6d + 9735d9d commit 47cdd7fCopy full SHA for 47cdd7f
1 file changed
drivers/hid/intel-ish-hid/ishtp-hid.c
@@ -211,10 +211,8 @@ int ishtp_hid_probe(unsigned int cur_hid_dev,
211
struct ishtp_hid_data *hid_data;
212
213
hid = hid_allocate_device();
214
- if (IS_ERR(hid)) {
215
- rv = PTR_ERR(hid);
216
- return -ENOMEM;
217
- }
+ if (IS_ERR(hid))
+ return PTR_ERR(hid);
218
219
hid_data = kzalloc(sizeof(*hid_data), GFP_KERNEL);
220
if (!hid_data) {
0 commit comments