Re: [PATCH] scsi: mptscsih: remove set but not used 'timeleft'

From: Martin K. Petersen
Date: Tue Sep 08 2020 - 22:10:05 EST


On Thu, 27 Aug 2020 20:59:25 +0800, Jason Yan wrote:

> This addresses the following gcc warning with "make W=1":
>
> drivers/message/fusion/mptscsih.c: In function ‘mptscsih_IssueTaskMgmt’:
> drivers/message/fusion/mptscsih.c:1519:17: warning: variable ‘timeleft’
> set but not used [-Wunused-but-set-variable]
> 1519 | unsigned long timeleft;
> | ^~~~~~~~

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: mptscsih: Remove set but not used 'timeleft'
https://git.kernel.org/mkp/scsi/c/bef7afbf3bb6

--
Martin K. Petersen Oracle Linux Engineering