Re: [PATCH -next] USB: serial: mos7840: remove set but not used variables 'st, data1, iflag'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 26, 2018 at 08:25:49PM +0800, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
> 
> drivers/usb/serial/mos7840.c: In function 'mos7840_interrupt_callback':
> drivers/usb/serial/mos7840.c:604:14: warning:
>  variable 'st' set but not used [-Wunused-but-set-variable]
> 
> drivers/usb/serial/mos7840.c: In function 'mos7840_write':
> drivers/usb/serial/mos7840.c:1303:17: warning:
>  variable 'data1' set but not used [-Wunused-but-set-variable]
> 
> drivers/usb/serial/mos7840.c:1700:11: warning:
>  variable 'iflag' set but not used [-Wunused-but-set-variable]
> 
> They are never used since introduction in
> commit 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver")
> 
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied, thanks.

Johan



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux