staging: fbtft: fb_ili9320: Remove unused variable 'ret'
authorLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 18:11:10 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:26 +0000 (11:19 +0200)
Fixes the following W=1 kernel build warning(s):

 drivers/staging/fbtft/fb_ili9320.c: In function ‘read_devicecode’:
 drivers/staging/fbtft/fb_ili9320.c:25:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Cc: linux-staging@lists.linux.dev
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210414181129.1628598-39-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_ili9320.c

index f2e72d14431dba301859c74882f64c7ae2943ba5..f0ebc40857b34e0bfb7a97ec524ef1753d3449e8 100644 (file)
 
 static unsigned int read_devicecode(struct fbtft_par *par)
 {
-       int ret;
        u8 rxbuf[8] = {0, };
 
        write_reg(par, 0x0000);
-       ret = par->fbtftops.read(par, rxbuf, 4);
+       par->fbtftops.read(par, rxbuf, 4);
        return (rxbuf[2] << 8) | rxbuf[3];
 }