nvmem: sunxi_sid: remove unused variable in probe
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 21 Sep 2018 13:40:25 +0000 (06:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:14:55 +0000 (15:14 +0200)
This patch fixes below warning:
sunxi_sid.c:157:6: warning: unused variable 'ret' [-Wunused-variable]

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/sunxi_sid.c

index 1310f8a..570a2e3 100644 (file)
@@ -154,7 +154,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
        struct resource *res;
        struct nvmem_device *nvmem;
        struct sunxi_sid *sid;
-       int ret, i, size;
+       int i, size;
        char *randomness;
        const struct sunxi_sid_cfg *cfg;