staging: ccree: else is not generally useful after a break or return
authorSuniel Mahesh <sunil.m@techveda.org>
Fri, 22 Sep 2017 04:42:21 +0000 (10:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 16:29:07 +0000 (18:29 +0200)
Fixes checkpatch warnings:

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

Signed-off-by: Suniel Mahesh <sunil.m@techveda.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_request_mgr.c

index 066b6a6..2e0df57 100644 (file)
@@ -386,10 +386,9 @@ int send_request(
                 */
                wait_for_completion(&ssi_req->seq_compl);
                return 0;
-       } else {
-               /* Operation still in process */
-               return -EINPROGRESS;
        }
+       /* Operation still in process */
+       return -EINPROGRESS;
 }
 
 /*!