浏览代码

staging: ccree: else is not generally useful after a break or return

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>
Suniel Mahesh 8 年之前
父节点
当前提交
abd4b78793
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      drivers/staging/ccree/ssi_request_mgr.c

+ 2 - 3
drivers/staging/ccree/ssi_request_mgr.c

@@ -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;
 }
 
 /*!