From patchwork Thu Sep 18 19:01:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Martin X-Patchwork-Id: 37600 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 593172054D for ; Thu, 18 Sep 2014 19:04:50 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id q1sf906870lam.6 for ; Thu, 18 Sep 2014 12:04:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:thread-topic :thread-index:message-id:accept-language:acceptlanguage:mime-version :cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-language:content-type; bh=tDxCeoFL14SuS4AmsXVjWwrIWLysoGcPfwQP+pljhbs=; b=IlFFD7BKSHiQWVFzFxADNZ2yiYZykHq+vLGH0Z0mPq4j//x0IUgmq/rpmbNtlgHB0y YZWLW/EbyulDo8mz+hLYjjAgaJOz/egryl/Dfna49Bc4QZnYDCAeCXYYwLZ+KgceM0nF Xn0sfOSGRZ6t4fdsQxueP94ResDLNQX9oPJEVM4vTPr/rPJuxgUj4aRYoO5Cx8EZOfTD DMeYE6V4+yTPNyVte4MR4rG8w/HODkClp6HeP8Hb0JI3Dkiq3AooX0s5bgA8d/MtdC2o zo+JdFglyPsYj2oyhYxkbp0v01wnnAnXjr7/6yG3LFqRyi5c/mxfLATqKBwgHjMlpJ4m p8bQ== X-Gm-Message-State: ALoCoQk3D7KQ7Yb0fIVRwTsga9dIafUIPw7FjyG68IvInFBPL/03NaOoQ9dWf+TlmPFZbIPblAuo X-Received: by 10.194.7.199 with SMTP id l7mr752005wja.2.1411067089098; Thu, 18 Sep 2014 12:04:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.169 with SMTP id k9ls266284laa.91.gmail; Thu, 18 Sep 2014 12:04:48 -0700 (PDT) X-Received: by 10.152.36.4 with SMTP id m4mr1722170laj.17.1411067088848; Thu, 18 Sep 2014 12:04:48 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id ln8si34004169lac.122.2014.09.18.12.04.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Sep 2014 12:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id z12so1778882lbi.22 for ; Thu, 18 Sep 2014 12:04:48 -0700 (PDT) X-Received: by 10.112.75.233 with SMTP id f9mr1687378lbw.102.1411067088691; Thu, 18 Sep 2014 12:04:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp815936lbb; Thu, 18 Sep 2014 12:04:47 -0700 (PDT) X-Received: by 10.43.158.195 with SMTP id lv3mr14792257icc.30.1411067086690; Thu, 18 Sep 2014 12:04:46 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id wa16si20618icb.86.2014.09.18.12.04.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Sep 2014 12:04:46 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XUh0N-0004mz-Ei; Thu, 18 Sep 2014 19:04:35 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XUh0M-0004mu-3B for edk2-devel@lists.sourceforge.net; Thu, 18 Sep 2014 19:04:34 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of arm.com designates 195.130.217.12 as permitted sender) client-ip=195.130.217.12; envelope-from=olivier.martin@arm.com; helo=service88.mimecast.com; Received: from service88.mimecast.com ([195.130.217.12]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1XUh0H-0003v6-T4 for edk2-devel@lists.sourceforge.net; Thu, 18 Sep 2014 19:04:34 +0000 Received: from emea-cam-gw1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) (Using TLS) by service88.mimecast.com; Thu, 18 Sep 2014 20:04:23 +0100 Received: from george.Emea.Arm.com ([fe80::4c19:a8f:5c9a:76df]) by emea-cam-gw1.Emea.Arm.com ([::1]) with mapi; Thu, 18 Sep 2014 20:04:20 +0100 From: Olivier Martin To: "feng.tian@intel.com" Date: Thu, 18 Sep 2014 20:01:46 +0100 Thread-Topic: [PATCH] MdeModulePkg/ScsiDiskDxe: Fixed unreachable statement Thread-Index: AQHP03L+R45ZL4eneUO/37wSTWTnHw== Message-ID: <0877601216922E4B83A7129715B5DA2BBE7474DF28@GEORGE.Emea.Arm.com> Accept-Language: en-US, en-GB X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB MIME-Version: 1.0 X-MC-Unique: 114091820042300202 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1XUh0H-0003v6-T4 Cc: "edk2-devel@lists.sourceforge.net" Subject: [edk2] [PATCH] MdeModulePkg/ScsiDiskDxe: Fixed unreachable statement X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: olivier.martin@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Language: en-GB Dear MdeModulePkg maintainer, please find the attached patch that should fix the build warning/error "unreachable statement" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Regards, Olivier -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk Reviewed-by: Feng Tian Signed-off-by: Olivier Martin >From 661a6ede3d2ed106ad4203854eac2feda681fd00 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Thu, 18 Sep 2014 18:20:34 +0100 Subject: MdeModulePkg/ScsiDiskDxe: Fixed unreachable statement Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin --- MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c index e5dd6b9..b9ee43b 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c @@ -1572,7 +1572,6 @@ CheckTargetStatus ( case EFI_EXT_SCSI_STATUS_TARGET_RESERVATION_CONFLICT: return EFI_DEVICE_ERROR; - break; default: return EFI_SUCCESS; -- 1.7.5.4