[PATCH 3/3] staging: et131x: fix build warning
Dan Carpenter
dan.carpenter at oracle.com
Wed Nov 27 10:13:15 UTC 2013
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
More information about the devel
mailing list