net: ethernet: 8390: axnet_cs: remove unused xfer_count variable
Subsystems (3)
PATCH 1/1 net: ethernet: 8390: axnet_cs: remove unused xfer_count variable
clang with W=1 reports drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable
'xfer_count' set but not used [-Werror,-Wunused-but-set-variable]
int xfer_count = count;
^This variable is not used so remove it.
--- drivers/net/ethernet/8390/axnet_cs.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/8390/axnet_cs.c +0 -3
@@ -650,7 +650,6 @@ static void block_input(struct net_device *dev, int count, {unsigned int nic_base = dev->base_addr;struct ei_device *ei_local =netdev_priv (dev); -int xfer_count = count;char *buf = skb->data;if ((netif_msg_rx_status (ei_local)) && (count !=4 ))
@@ -662,9 +661,7 @@ static void block_input(struct net_device *dev, int count,insw (nic_base +AXNET_DATAPORT ,buf,count>>1 );if (count &0x01 ) { buf[count-1 ] =inb (nic_base +AXNET_DATAPORT ); - xfer_count++; } - }/*====================================================================*/
Signature · 1 line
2.27.0
Quoted 8 lines · Tom Rix
clang with W=1 reports
drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable
'xfer_count' set but not used [-Werror,-Wunused-but-set-variable]int xfer_count = count; ^This variable is not used so remove it.
Signed-off-by Tom Rix <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 27 Mar 2023 19:54:23 -0400 you wrote:
clang with W=1 reports
drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable
'xfer_count' set but not used [-Werror,-Wunused-but-set-variable]int xfer_count = count; ^This variable is not used so remove it.
[...]
Here is the summary with links:
- net: ethernet: 8390: axnet_cs: remove unused xfer_count variable
https://git.kernel.org/netdev/net-next/c/e48cefb9c8d1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html