]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: et131x: Fix 'else is not generally useful after a break or return'
authorMark Einon <mark.einon@gmail.com>
Sun, 14 Sep 2014 15:59:04 +0000 (16:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:05:20 +0000 (16:05 -0700)
Fix this checkpatch warning:

WARNING: else is not generally useful after a break or return

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index 69f414033ba29c100514f771b7ca2ce6a1a4e516..df31fee965e04a5aa8fdd76a28283080c52b867b 100644 (file)
@@ -1529,8 +1529,8 @@ static int et131x_mdio_read(struct mii_bus *bus, int phy_addr, int reg)
 
        if (ret < 0)
                return ret;
-       else
-               return value;
+
+       return value;
 }
 
 static int et131x_mdio_write(struct mii_bus *bus, int phy_addr,