Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1040360pxk; Fri, 18 Sep 2020 02:09:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6aAbhvHpr3JINgqjVB4ci3T4NQVKz61rsQzy6hu1MEhPkw54MvrN/oZncA0nsjrBslxZL X-Received: by 2002:a17:906:4e54:: with SMTP id g20mr36057818ejw.252.1600420190001; Fri, 18 Sep 2020 02:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600420189; cv=none; d=google.com; s=arc-20160816; b=Z/hPRII8eFkaTxH0XBlJnu46MKLMd4iVOlWRxTCoMIgoL42tr7CuaYeM1cmhlDj+id KXg/7P4g62H/6PLQSUc4UOodc1kiwLDLm9RTFSUra5DO1KvvMGHzROmdbYImpmHm9v2Q 2jbOz0WxIIhZcfuQCn8qYBM7Ls3ZBQAiB7U4Rq+VAaE4PnkJt270nFt0n5gdMthRxDW4 McPSp1sT9nSlswjNc1VV5zJR+N5qgw2BLKqV2eWNUzmuEe7m1rof02SD/YVkS9+KW7Md 2r6aMyeFWkNh5KcVMpdWcSMcC570muSQrXwx1mtU5z5hVVP5C0BXgyg8yI7sFc2kmFdg 6kmA== 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=rnftHgHInj0GU5wCgI9+NpWaq2mBdhGU+qGiWuL/MIA=; b=vCjsKeiXre9elIM2qAbt4a0FrrJV+mCQqqhwcTkzP1dScyp1NqOBFGMVB7aowHgDN1 yF5wJpE5/cITOlIPQpBe0PL0wH5D7Q5e3XBRlWNsz+WOecFutDaKaKK4g5Mbfs/uHutk rDtrAPh8HNYCXjVnzGZUNn1WEokmuYQDj6xApWpl01W5z+YvFkVRUQhCfGchmbANbB86 D6jotBv8Kq3X6pYbfTMRZYUZUgEW7AGXgVWAOkefJJb4pOeUNXbsUxAYos5g+NtL06rI SYskwpquTLtWN5A6e3z9WKEOFtEk8qbyNidowkMha2MlNYR5kiUZXIUT7ag/cdrmE20c KrMg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si1637629edy.183.2020.09.18.02.09.26; Fri, 18 Sep 2020 02:09:49 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgIRJHw (ORCPT + 99 others); Fri, 18 Sep 2020 05:07:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:50942 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725874AbgIRJHw (ORCPT ); Fri, 18 Sep 2020 05:07:52 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 55A4A1514625D3BF7801; Fri, 18 Sep 2020 17:07:50 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 17:07:39 +0800 From: Jing Xiangfeng To: , , , , CC: , , , Subject: [PATCH] scsi: remove redundant initialization of variable ret Date: Fri, 18 Sep 2020 17:07:47 +0800 Message-ID: <20200918090747.44645-1-jingxiangfeng@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable ret is being initialized with '-ENOMEM' that is meaningless. So remove it. Signed-off-by: Jing Xiangfeng --- drivers/scsi/arm/oak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index 7c9d361e91a9..78f33d57c3e8 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c @@ -120,7 +120,7 @@ static struct scsi_host_template oakscsi_template = { static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) { struct Scsi_Host *host; - int ret = -ENOMEM; + int ret; ret = ecard_request_resources(ec); if (ret) -- 2.17.1