gpio: Remove the unused flags
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Tue, 14 Jan 2020 13:37:42 +0000 (21:37 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jan 2020 10:24:19 +0000 (11:24 +0100)
drivers/gpio/gpio-grgpio.c: In function ‘grgpio_remove’:
drivers/gpio/gpio-grgpio.c:438:16: warning: unused variable ‘flags’ [-Wunused-variable]
  unsigned long flags;
                 ^
Fixes: 25d071b3f6db ("gpio: gpio-grgpio: fix possible sleep-in-atomic-context bugs in grgpio_remove()")
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/1579009062-7154-1-git-send-email-zhangshaokun@hisilicon.com
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com
Reviewed-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-grgpio.c

index 1922adf96fc94d81576d29b7c2c08c4b989d3e43..f954359c9544ec3b31ad603306df9e7623ff2562 100644 (file)
@@ -435,7 +435,6 @@ static int grgpio_probe(struct platform_device *ofdev)
 static int grgpio_remove(struct platform_device *ofdev)
 {
        struct grgpio_priv *priv = platform_get_drvdata(ofdev);
-       unsigned long flags;
        int i;
        int ret = 0;