[Intel-wired-lan] [next PATCH v2 2/2] i40evf: fix compiler warning of unused variable
Bowers, AndrewX
andrewx.bowers at intel.com
Mon Oct 5 18:52:52 UTC 2015
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Jesse Brandeburg
> Sent: Wednesday, September 16, 2015 7:01 PM
> To: e1000-patches at isotope.jf.intel.com
> Subject: [Intel-wired-lan] [next PATCH v2 2/2] i40evf: fix compiler warning of unused variable
>
> Compiler complained of an unused variable, which the driver was just using
> to store the result of a rd32 which is used to clear a register unconditionally.
> Just drop the unused variable and re-use one.
>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> ---
> drivers/net/ethernet/intel/i40evf/i40evf_main.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Patch code changes correctly applied, compiler does not issue unused variable warning at compile time.
More information about the Intel-wired-lan
mailing list