Linux PARISC architecture development
 help / color / mirror / Atom feed
* [PATCH] net: tulip: de4x5: remove unused variable
@ 2022-06-01  7:24 Haowen Bai
  2022-06-01 14:38 ` kernel test robot
  2022-06-02  1:06 ` baihaowen
  0 siblings, 2 replies; 3+ messages in thread
From: Haowen Bai @ 2022-06-01  7:24 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Haowen Bai, netdev, linux-parisc, linux-kernel

The variable imr is initialized but never used otherwise.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
---
 drivers/net/ethernet/dec/tulip/de4x5.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
index 71730ef4cd57..40a54827d599 100644
--- a/drivers/net/ethernet/dec/tulip/de4x5.c
+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
@@ -3817,10 +3817,9 @@ de4x5_setup_intr(struct net_device *dev)
 {
     struct de4x5_private *lp = netdev_priv(dev);
     u_long iobase = dev->base_addr;
-    s32 imr, sts;
+    s32 sts;
 
     if (inl(DE4X5_OMR) & OMR_SR) {   /* Only unmask if TX/RX is enabled */
-	imr = 0;
 	UNMASK_IRQs;
 	sts = inl(DE4X5_STS);        /* Reset any pending (stale) interrupts */
 	outl(sts, DE4X5_STS);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-02  1:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01  7:24 [PATCH] net: tulip: de4x5: remove unused variable Haowen Bai
2022-06-01 14:38 ` kernel test robot
2022-06-02  1:06 ` baihaowen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox