Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751830AbdIVEmf (ORCPT ); Fri, 22 Sep 2017 00:42:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37982 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbdIVEmd (ORCPT ); Fri, 22 Sep 2017 00:42:33 -0400 X-Google-Smtp-Source: AOwi7QBb3D4GXWEf6DmVtjEn5t92xjz2iKExir6n8EiYPlu4DJRjhjFANEzvjtiI9wmifXBXW6GkuA== From: sunil.m@techveda.org To: gilad@benyossef.com, gregkh@linuxfoundation.org Cc: linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Suniel Mahesh Subject: [PATCH] staging: ccree: else is not generally useful after a break or return Date: Fri, 22 Sep 2017 10:12:21 +0530 Message-Id: <1506055341-15379-1-git-send-email-sunil.m@techveda.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 861 Lines: 34 From: Suniel Mahesh Fixes checkpatch warnings: WARNING: else is not generally useful after a break or return Signed-off-by: Suniel Mahesh --- Note: - Patch was tested and built(ARCH=arm) on next-20170921. No build issues reported. --- drivers/staging/ccree/ssi_request_mgr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index daa5432..25eecbb 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -387,10 +387,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; } /*! -- 1.9.1