From 924c6ee1b2e7c9800c43104e67a291678e6a3440 Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Fri, 26 Sep 2014 00:41:22 +0300 Subject: [PATCH] staging: emxx_udc: Fixed else is not usefull warning. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/emxx_udc/emxx_udc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 6212efb606ea..3c8d723e7449 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -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; } /*-------------------------------------------------------------------------*/ -- 2.20.1