Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5153324rwb; Tue, 6 Sep 2022 20:20:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6vcLGPPsrsGM5t6RrgH+lbMR6Ry9NQrHpkG17gqfWaCysSUgjXyCWUGOgkoobNUyJA4Edk X-Received: by 2002:a17:907:b09:b0:76f:99cc:81cd with SMTP id h9-20020a1709070b0900b0076f99cc81cdmr881941ejl.530.1662520839804; Tue, 06 Sep 2022 20:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662520839; cv=none; d=google.com; s=arc-20160816; b=Ko7uTyQtjnFV1cwfDiu3tYRu7uHGDkvO/XDfU/V/i5I9jUvRKHMhE2qfpOhxWK0XEn cyPyOqLb11F6TTpMb62vR0lNSjg3L/zVYk6pCjWt6T01D7jLtQTZxNjhM1nMFTo6LVsT dQr0RgIplpDZ9CQbH9OOgCavfQPM1hvyTJk4nKR2jQTjyTaV3dQYpje/kMmb6kAdoQuE NWQpwXOaY4YUGX2APJL2jGK8l6ruDsOmUCGrf72Fc6om9B9PbM5PCQZ0a9jRbyca8PzY Zfci7GN2gQZ3R1OSW2AkBSzgML9M4TaDxWpg5V/drbu79XXZq95wdTxcdo/QqKYNbEat 9c9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=33cm7pohTst5E9getsqKf1GlxdBGs79d9pPB38ftPRc=; b=oRavHRbU+Q+3yqKypSoh9LLrzdXYJO8AXJeSDZuJUzcOavTKyO3XI4HjgLgCLsRq8E lnVeXZ4H8qSMDdJ7hi0FO8prU4GHfeUkc7r/D7Ii5p0S9jvYml5s54bN7VYxCUO0SvQY ueBgZTjW8+7b5DbFINDk1E621p4Ne8/ZkxOLN0+du4/ngHtwTqXPJfxMJNWzv8YgwKbz 02CMAI9nIR/+pmYy+NAtvfOJxt1WOquXLcXgvnwksIjcK+2vKPp18sCpmmSnBqqd4uSM Z4IxuK5nsl/bf/6TkEQwFUXH5G7uSzsya6oKJQW3UVWR9VDUqC+kPGgvQ/C18OMfadaU xB+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw9-20020a170907a0c900b0073c5554f03bsi10871298ejc.722.2022.09.06.20.20.14; Tue, 06 Sep 2022 20:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbiIGCVv (ORCPT + 99 others); Tue, 6 Sep 2022 22:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiIGCVt (ORCPT ); Tue, 6 Sep 2022 22:21:49 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5ADA8C00A; Tue, 6 Sep 2022 19:21:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VOvC7Cs_1662517303; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VOvC7Cs_1662517303) by smtp.aliyun-inc.com; Wed, 07 Sep 2022 10:21:45 +0800 From: Jiapeng Chong To: sathya.prakash@broadcom.com Cc: sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] [SCSI] mpt fusion: remove unreachable code Date: Wed, 7 Sep 2022 10:18:13 +0800 Message-Id: <20220907021813.85650-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function mptctl_do_fw_download cannot execute return 0, delete the invalid code. drivers/message/fusion/mptctl.c:978 mptctl_do_fw_download() warn: ignoring unreachable code. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2086 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 52c7020c9d19..72affe00dcec 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c @@ -975,7 +975,6 @@ mptctl_do_fw_download(MPT_ADAPTER *iocp, char __user *ufwbuf, size_t fwlen) printk(MYIOC_s_WARN_FMT "(bad VooDoo)\n", iocp->name); return -ENOMSG; } - return 0; fwdl_out: -- 2.19.1.6.gb485710b