staging: emxx_udc: Fixed else is not usefull warning.
authorGulsah Kose <gulsah.1004@gmail.com>
Thu, 25 Sep 2014 21:41:22 +0000 (00:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:06:43 +0000 (23:06 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning in emxx_udc.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c

index 6212efb606ea2d020ee3dc89a5ea0710895efa9d..3c8d723e74495d8d3f76f1e5b2717d95876e3727 100644 (file)
@@ -1491,8 +1491,7 @@ static int _nbu2ss_get_ep_stall(struct nbu2ss_udc *udc, u8 ep_adrs)
 
        if ((data & bit_data) == 0)
                return 0;
-       else
-               return 1;
+       return 1;
 }
 
 /*-------------------------------------------------------------------------*/