Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp906760pxb; Wed, 3 Feb 2021 23:31:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYGaUKxdXPdwfUwxnXlHxmJABZkcawDro9xmtXiiIq7IFhLfdstyUcgv9WutCP644nCIN7 X-Received: by 2002:a17:906:ca04:: with SMTP id jt4mr6984197ejb.548.1612423877135; Wed, 03 Feb 2021 23:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612423877; cv=none; d=google.com; s=arc-20160816; b=nHorU/0AwXRHvCbvQzzhOQkVFNg3nGzz0q3wmUK0++lmpffRwndG0nL8a7a7YRxkCp ZW38JB3QoNPOigVOuao3dRrlm16LMLKs41N0GiKGtaW4Y+YbPZAhJC97arEeNOBy//ah CE3qi2BrMMM/KaiQV0G95IAfw9wM4I2WUQOXMiehpsTROrq6u6n+mcXyxsz646xwcqE7 F2O/afGW+fX4SDprzlzrkFtPNPHb+qoRZMQvwwOcHMs6VS2JAX1SdVSA2DnPAXPguntY r4pOEVaxUqwu4FHSB5bKrLWMj+gJ9TIBrqOfcfKErsnhKRyDYoFO56iO+qduSYRd+go3 HQ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=7NcPb27F2SIKhLYLpJbt1cJKqxvJ/RB8iqm71cIjgog=; b=GPfPsOcIk/DUC1Y3IybxnBJjPkt4oA1+a4NKD50Uoqa1wlC1Itygck6NdSfypNfe5M p/64BtEYX2WzE5JyUQCYkJ3uea5F2Tvdo8xQPl29gVI7D8uET7qe/mvvpTwbv7h1gmkN 2gWyiqCm7hQCH6fbLLRumBHXMEEcS4gA3BTsL6f9slzIlDXX7RFrv1pxNtiLz8NWGaQg xe2CTfdHH7Z19/1pAz4LjCdhAKWp2Q3QhTNdy0PkUfCnXuwUki3iYwAPdDVrgOSVfwgR NeTCZ/oxqvQTMAoXCr2S+vk+ZmcVUZHrBlUXrP39PbaXED0X8Zcvwsv0Jppx9dTH2A5s qSDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zn8si2970413ejb.43.2021.02.03.23.30.29; Wed, 03 Feb 2021 23:31:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234508AbhBDH1H (ORCPT + 99 others); Thu, 4 Feb 2021 02:27:07 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:51228 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234179AbhBDH0y (ORCPT ); Thu, 4 Feb 2021 02:26:54 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R511e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UNpW51s_1612423570; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UNpW51s_1612423570) by smtp.aliyun-inc.com(127.0.0.1); Thu, 04 Feb 2021 15:26:11 +0800 From: Yang Li To: martin.petersen@oracle.com Cc: jejb@linux.ibm.com, brking@us.ibm.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] scsi: ipr: Remove unneeded return variable Date: Thu, 4 Feb 2021 15:26:08 +0800 Message-Id: <1612423568-81006-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/scsi/ipr.c:9508:5-7: Unneeded variable: "rc". Return "0" on line 9524 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/ipr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index e451102..8eced7c 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -9505,7 +9505,6 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev, **/ static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg) { - int rc = 0; unsigned long host_lock_flags = 0; ENTER; @@ -9521,7 +9520,7 @@ static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg) spin_unlock_irqrestore(ioa_cfg->host->host_lock, host_lock_flags); LEAVE; - return rc; + return 0; } /** -- 1.8.3.1