Re: [PATCH 3/3] staging: et131x: fix build warning

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

 



On Wed, Nov 27, 2013 at 03:45:14PM +0800, ZHAO Gang wrote:
> fix make -W1 warning:
> drivers/staging/et131x//et131x.c: In function ‘et1310_setup_device_for_multicast’:
> drivers/staging/et131x//et131x.c:1055:6: warning: variable ‘pm_csr’ set but not used [-Wunused-but-set-variable]
>   u32 pm_csr;
>       ^
> drivers/staging/et131x//et131x.c: In function ‘et1310_setup_device_for_unicast’:
> drivers/staging/et131x//et131x.c:1104:6: warning: variable ‘pm_csr’ set but not used [-Wunused-but-set-variable]
>   u32 pm_csr;
>       ^
> drivers/staging/et131x//et131x.c: In function ‘et131x_isr_handler’:
> drivers/staging/et131x//et131x.c:4009:8: warning: variable ‘pm_csr’ set but not used [-Wunused-but-set-variable]
>     u32 pm_csr;
>         ^

Did you test these?  Sometimes hardware requires stupid stuff like
dummy reads...

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux