diff options
author | Souptick Joarder (HPE) <jrdr.linux@gmail.com> | 2022-07-25 06:59:55 +0530 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2022-09-24 16:05:54 +0200 |
commit | 50f9926da3ce6c82f2a4ab1e8b18f032349837a4 (patch) | |
tree | 9b592e9ef51bfd3b703992b882121fe956521a53 /drivers/pcmcia | |
parent | ea9d7c790a2a279810fd2a7db6908a136c97d466 (diff) | |
download | linux-50f9926da3ce6c82f2a4ab1e8b18f032349837a4.tar.gz linux-50f9926da3ce6c82f2a4ab1e8b18f032349837a4.tar.bz2 linux-50f9926da3ce6c82f2a4ab1e8b18f032349837a4.zip |
pcmcia: Removed unused variable control.
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@intel.com>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com>
[linux@dominikbrodowski.net: retain omap_readw() call, as it might be required]
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/omap_cf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c index 1972a8f6fa8e..d3f827d4224a 100644 --- a/drivers/pcmcia/omap_cf.c +++ b/drivers/pcmcia/omap_cf.c @@ -124,8 +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) { case 0: @@ -135,7 +133,7 @@ omap_cf_set_socket(struct pcmcia_socket *sock, struct socket_state_t *s) return -EINVAL; } - control = omap_readw(CF_CONTROL); + omap_readw(CF_CONTROL); if (s->flags & SS_RESET) omap_writew(CF_CONTROL_RESET, CF_CONTROL); else |