mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
ea9d7c790a
commit
50f9926da3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user