Skip to content

Commit 4ce3ba5

Browse files
Lee Jonesbentiss
authored andcommitted
HID: intel-ish-hid: Remove unused variable 'err'
Fixes the following W=1 kernel build warning(s): drivers/hid/intel-ish-hid/ishtp/client.c: In function ‘ishtp_cl_disconnect’: drivers/hid/intel-ish-hid/ishtp/client.c:266:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] Cc: Srinivas Pandruvada <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Cc: [email protected] Signed-off-by: Lee Jones <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 94cad2d commit 4ce3ba5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ EXPORT_SYMBOL(ishtp_cl_unlink);
263263
int ishtp_cl_disconnect(struct ishtp_cl *cl)
264264
{
265265
struct ishtp_device *dev;
266-
int err;
267266

268267
if (WARN_ON(!cl || !cl->dev))
269268
return -ENODEV;
@@ -283,7 +282,7 @@ int ishtp_cl_disconnect(struct ishtp_cl *cl)
283282
return -ENODEV;
284283
}
285284

286-
err = wait_event_interruptible_timeout(cl->wait_ctrl_res,
285+
wait_event_interruptible_timeout(cl->wait_ctrl_res,
287286
(dev->dev_state != ISHTP_DEV_ENABLED ||
288287
cl->state == ISHTP_CL_DISCONNECTED),
289288
ishtp_secs_to_jiffies(ISHTP_CL_CONNECT_TIMEOUT));

0 commit comments

Comments
 (0)