[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220725012955.4928-1-jrdr.linux@gmail.com>
Date: Mon, 25 Jul 2022 06:59:55 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: linux@...inikbrodowski.net, tony@...mide.com, arnd@...db.de
Cc: linux-kernel@...r.kernel.org,
"Souptick Joarder (HPE)" <jrdr.linux@...il.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] pcmcia: Removed unused variable control.
From: "Souptick Joarder (HPE)" <jrdr.linux@...il.com>
Kernel test robot throws below warning ->
drivers/pcmcia/omap_cf.c:127:7: warning: variable 'control'
set but not used [-Wunused-but-set-variable]
Removed unused variable control.
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@...il.com>
---
drivers/pcmcia/omap_cf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c
index 1972a8f6fa8e..c96943805f77 100644
--- a/drivers/pcmcia/omap_cf.c
+++ b/drivers/pcmcia/omap_cf.c
@@ -124,7 +124,6 @@ static int omap_cf_get_status(struct pcmcia_socket *s, u_int *sp)
static int
omap_cf_set_socket(struct pcmcia_socket *sock, struct socket_state_t *s)
{
- u16 control;
/* REVISIT some non-OSK boards may support power switching */
switch (s->Vcc) {
@@ -135,7 +134,6 @@ omap_cf_set_socket(struct pcmcia_socket *sock, struct socket_state_t *s)
return -EINVAL;
}
- control = omap_readw(CF_CONTROL);
if (s->flags & SS_RESET)
omap_writew(CF_CONTROL_RESET, CF_CONTROL);
else
--
2.25.1
Powered by blists - more mailing lists