]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: musb: musb_dsps: Simplify return statement
authorSaurabh Karajgaonkar <skarajga@visteon.com>
Tue, 4 Aug 2015 14:02:28 +0000 (14:02 +0000)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 16:02:09 +0000 (11:02 -0500)
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c

index 1334a3de31b8e937756d9546073d41f71ee513bd..a0cfead6150f13a58fc83d50fa0a0559b8bc8908 100644 (file)
@@ -482,11 +482,7 @@ static int dsps_musb_init(struct musb *musb)
                dsps_writeb(musb->mregs, MUSB_BABBLE_CTL, val);
        }
 
-       ret = dsps_musb_dbg_init(musb, glue);
-       if (ret)
-               return ret;
-
-       return 0;
+       return dsps_musb_dbg_init(musb, glue);
 }
 
 static int dsps_musb_exit(struct musb *musb)