lkml.org 
[lkml]   [2016]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: lantiq_etop: Remove unused 'i' variable
From
From: Paul Burton <paul.burton@imgtec.com>
Date: Fri, 2 Sep 2016 15:26:54 +0100

> Commit e7f4dc3536a4 ("mdio: Move allocation of interrupts into core")
> removed the only use of the 'i' variable from ltq_etop_mdio_init() but
> left the variable declaration behind, leading to the following compiler
> warning:
>
> drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_mdio_init':
> drivers/net/ethernet/lantiq_etop.c:414:6: warning: unused variable 'i' [-Wunused-variable]
> int i;
> ^
>
> Fix this by removing the declaration of the 'i' variable.
>
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>

This appears to already be fixed in net-next

\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.030 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site