From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6D09681F42 for ; Wed, 25 Jan 2017 01:58:56 -0800 (PST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE324C04BD28; Wed, 25 Jan 2017 09:58:56 +0000 (UTC) Received: from thh440s.redhat.com (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0P9wtam025263; Wed, 25 Jan 2017 04:58:56 -0500 From: Thomas Huth To: edk2-devel@ml01.01.org Cc: Chao Zhang Date: Wed, 25 Jan 2017 10:58:55 +0100 Message-Id: <1485338335-29716-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 25 Jan 2017 09:58:56 +0000 (UTC) Subject: [PATCH] SecurityPkg: Remove superfluous return statement X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 09:58:56 -0000 If the code eventually returns "Status" anyway, it does not make sense to explicitly return "Status" in case of an error, too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Huth --- SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalAhciMode.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalAhciMode.c b/SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalAhciMode.c index 33f77bd..a95ea2f 100644 --- a/SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalAhciMode.c +++ b/SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalAhciMode.c @@ -1286,10 +1286,6 @@ AhciModeInitialize ( EFI_TIMER_PERIOD_SECONDS(16) ); - if (EFI_ERROR (Status)) { - return Status; - } - return Status; } -- 1.8.3.1