lkml.org 
[lkml]   [2016]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 2/5] net: tlan: don't set unused function argument
From
From: Arnd Bergmann <arnd@arndb.de>
Date: Thu, 16 Jun 2016 13:38:23 +0200

> We get a warning for tlan_handle_tx_eoc when building with "make W=1"
>
> drivers/net/ethernet/ti/tlan.c: In function 'tlan_handle_tx_eoc':
> drivers/net/ethernet/ti/tlan.c:1647:59: error: parameter 'host_int' set but not used [-Werror=unused-but-set-parameter]
> static u32 tlan_handle_tx_eoc(struct net_device *dev, u16 host_int)
>
> This is harmless, but removing the unused assignment lets us avoid
> the warning with no downside.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied to net-next.

\
 
 \ /
  Last update: 2016-06-17 03:21    [W:0.085 / U:2.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site