staging: octeon-usb: Removed unnessecary else after return
authorSarah Khan <sarahjmi07@gmail.com>
Tue, 7 Oct 2014 01:03:54 +0000 (06:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
WARNING: else is generally not useful after return or break
checkpatch.pl warning in octeon-hcd.c

Signed-off-by: Sarah Khan <sarahjmi07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon-usb/octeon-hcd.c

index 5f9db4c..6ddde6a 100644 (file)
@@ -640,8 +640,7 @@ static inline int __cvmx_usb_get_data_pid(struct cvmx_usb_pipe *pipe)
 {
        if (pipe->pid_toggle)
                return 2; /* Data1 */
-       else
-               return 0; /* Data0 */
+       return 0; /* Data0 */
 }
 
 /**