]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/powermac: Remove variable x that's never read
authorMathieu Malaterre <malat@debian.org>
Wed, 28 Mar 2018 19:30:28 +0000 (21:30 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:37 +0000 (22:12 +1000)
Since the value of x is never intended to be read, remove it. Fix
warning treated as error with W=1:

  arch/powerpc/platforms/powermac/udbg_scc.c:76:9: error: variable ‘x’ set but not used

Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/udbg_scc.c

index d83135a9830ead5f677b5af278fc183949d6df30..8901973ed683d6d2afed613741ad088e6951ee70 100644 (file)
@@ -73,7 +73,7 @@ void udbg_scc_init(int force_scc)
        struct device_node *stdout = NULL, *escc = NULL, *macio = NULL;
        struct device_node *ch, *ch_def = NULL, *ch_a = NULL;
        const char *path;
-       int i, x;
+       int i;
 
        escc = of_find_node_by_name(NULL, "escc");
        if (escc == NULL)
@@ -120,7 +120,7 @@ void udbg_scc_init(int force_scc)
        mb();
 
        for (i = 20000; i != 0; --i)
-               x = in_8(sccc);
+               in_8(sccc);
        out_8(sccc, 0x09);              /* reset A or B side */
        out_8(sccc, 0xc0);