char: pcmcia: cm4040_cs: Remove unused variable 'uc'
authorLee Jones <lee.jones@linaro.org>
Thu, 20 May 2021 12:13:33 +0000 (13:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 08:09:28 +0000 (10:09 +0200)
Fixes the following W=1 kernel build warning(s):

 drivers/char/pcmcia/cm4040_cs.c: In function ‘cm4040_read’:
 drivers/char/pcmcia/cm4040_cs.c:224:16: warning: variable ‘uc’ set but not used [-Wunused-but-set-variable]

Cc: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210520121347.3467794-3-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/cm4040_cs.c

index d5e4360..8277119 100644 (file)
@@ -221,7 +221,6 @@ static ssize_t cm4040_read(struct file *filp, char __user *buf,
        unsigned long i;
        size_t min_bytes_to_read;
        int rc;
-       unsigned char uc;
 
        DEBUGP(2, dev, "-> cm4040_read(%s,%d)\n", current->comm, current->pid);
 
@@ -308,7 +307,7 @@ static ssize_t cm4040_read(struct file *filp, char __user *buf,
                        return -EIO;
        }
 
-       uc = xinb(iobase + REG_OFFSET_BULK_IN);
+       xinb(iobase + REG_OFFSET_BULK_IN);
 
        DEBUGP(2, dev, "<- cm4040_read (successfully)\n");
        return min_bytes_to_read;