mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/applicom:Removed the unused variable byte_reset_it
@ 2024-10-08  7:28 Zhu Jun
  2024-10-08  7:41 ` Arnd Bergmann
  2024-10-08  7:47 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Zhu Jun @ 2024-10-08  7:28 UTC (permalink / raw)
  To: arnd; +Cc: gregkh, zhujun2, linux-kernel

Remove unused variable and redundant readb in ac_register_board

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 drivers/char/applicom.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 9fed9706d9cd..ea25caf35346 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -127,8 +127,6 @@ static int dummy;	/* dev_id for request_irq() */
 static int ac_register_board(unsigned long physloc, void __iomem *loc, 
 		      unsigned char boardno)
 {
-	volatile unsigned char byte_reset_it;
-
 	if((readb(loc + CONF_END_TEST)     != 0x00) ||
 	   (readb(loc + CONF_END_TEST + 1) != 0x55) ||
 	   (readb(loc + CONF_END_TEST + 2) != 0xAA) ||
@@ -156,7 +154,6 @@ static int ac_register_board(unsigned long physloc, void __iomem *loc,
 	apbs[boardno].RamIO = loc;
 	init_waitqueue_head(&apbs[boardno].FlagSleepSend);
 	spin_lock_init(&apbs[boardno].mutex);
-	byte_reset_it = readb(loc + RAM_IT_TO_PC);
 
 	numboards++;
 	return boardno + 1;
-- 
2.17.1




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

end of thread, other threads:[~2024-10-08  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08  7:28 [PATCH] drivers/applicom:Removed the unused variable byte_reset_it Zhu Jun
2024-10-08  7:41 ` Arnd Bergmann
2024-10-08  7:47 ` Greg KH

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

all inboxes | Powered by JetHome®