Skip to content

Commit 3977e00

Browse files
Lee Jonesbentiss
authored andcommitted
HID: intel-ish-hid: pci-ish: Remove unused variable 'ret'
Fixes the following W=1 kernel build warning(s): drivers/hid/intel-ish-hid/ipc/pci-ish.c: In function ‘ish_resume_handler’: drivers/hid/intel-ish-hid/ipc/pci-ish.c:264:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Srinivas Pandruvada <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Cc: Zhang Lixu <[email protected]> Cc: Kai-Heng Feng <[email protected]> Cc: Daniel Drubin <[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 a2e7aa0 commit 3977e00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/hid/intel-ish-hid/ipc/pci-ish.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)
261261
struct pci_dev *pdev = to_pci_dev(ish_resume_device);
262262
struct ishtp_device *dev = pci_get_drvdata(pdev);
263263
uint32_t fwsts = dev->ops->get_fw_status(dev);
264-
int ret;
265264

266265
if (ish_should_leave_d0i3(pdev) && !dev->suspend_flag
267266
&& IPC_IS_ISH_ILUP(fwsts)) {
@@ -273,7 +272,7 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)
273272

274273
/* Waiting to get resume response */
275274
if (dev->resume_flag)
276-
ret = wait_event_interruptible_timeout(dev->resume_wait,
275+
wait_event_interruptible_timeout(dev->resume_wait,
277276
!dev->resume_flag,
278277
msecs_to_jiffies(WAIT_FOR_RESUME_ACK_MS));
279278

0 commit comments

Comments
 (0)