lkml.org 
[lkml]   [2020]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] drivers: applicom: remove set but not used variable 'byte_reset_it'
Date
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/char/applicom.c: In function 'ac_register_board':
drivers/char/applicom.c:543: warning:
variable 'byte_reset_it' set but not used [-Wunused-but-set-variable]

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
drivers/char/applicom.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 14b2d8034c51..fd0b21607a7f 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -131,8 +131,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) ||
@@ -160,7 +158,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
\
 
 \ /
  Last update: 2020-07-21 10:41    [W:0.036 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site