From patchwork Thu Jun 10 07:42:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 457811 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp151081jae; Thu, 10 Jun 2021 00:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeJGXSZ93vT1FwpaPvAFTBowOvP5NKhEcWY4xOzzMtGO61ryvpswFlZxTu3xkcGuAfV+Zb X-Received: by 2002:aa7:c4d0:: with SMTP id p16mr3527509edr.150.1623310963327; Thu, 10 Jun 2021 00:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623310963; cv=none; d=google.com; s=arc-20160816; b=znmAJsbnXnirExBgByykR1La3jnmWwIjp8k03mTVLlg0lJer8yssj50PKDtN3PzsTV /c9XeZCAGPXG0ipXzS1G1JTlGKk/Dn1tlU0EUlAe795TmpMcZULEBNJ//SdsT7kodWwq 7mwiKGPCrDE5h8MPdN5NN35Ta1/rLLcN5IQJ267MatyBz9YrcI/foO2rXtg9laJnDiip R9DjOn5H82Um5++zGlTpB82ET/iMN/E8PLpTqycZKxe2IlDCayiasgylpmtAY6vCvTtv w0oUzn3W/qe8yClPby4D5azatOu/8yndxKhaN5EnmeRm2XIFyLsHlUMXiyLCEPMZ+G5b k0zg== 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=/aVejNkUAeeJP86b+X3wAwMgGKSd16yn7choeONqZUY=; b=D1E7VyZJh2UshRstBHzmWs/eLkwye8A4up/VYwRMJocLt4E08/i7i0eifgXYykkleb r3VQwVZff83YoqHTgQbHK7Ch/pzrlo6SlWQyC2cJTj6FXaE3S3AQ/xzi5yYuxdJO2MBm QiUB/3Cg4F/U93ydCqZNemprAwy/Krr5GD4ny86Ch+giD/fVLh2ZsNPmD+q78tM9tx5c BwxVcUn9cN1DOeAqgqmNwp7i+ddrNj0CBt3+VoVe0ODMnsQ4p6DspXD/qojLc9L4FonQ 0137SQXSNBN0/8+OATUvsEtuRNDR5hL0CoP6IjtqZCFzKeQoK1UfUQCSmsCZS80duIQt jCEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si1798216eju.58.2021.06.10.00.42.43 for ; Thu, 10 Jun 2021 00:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbhFJHoT (ORCPT ); Thu, 10 Jun 2021 03:44:19 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3935 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhFJHoS (ORCPT ); Thu, 10 Jun 2021 03:44:18 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0wpY13BGz6w5S; Thu, 10 Jun 2021 15:39:17 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:42:21 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:42:21 +0800 From: Zhen Lei To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH 1/1] scsi: a100u2w: remove unnecessary oom message Date: Thu, 10 Jun 2021 15:42:14 +0800 Message-ID: <20210610074214.15506-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei --- drivers/scsi/a100u2w.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index 028af6b1057c606..7bcb8889c085e0a 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c @@ -1123,19 +1123,15 @@ static int inia100_probe_one(struct pci_dev *pdev, sz = ORC_MAXQUEUE * sizeof(struct orc_scb); host->scb_virt = dma_alloc_coherent(&pdev->dev, sz, &host->scb_phys, GFP_KERNEL); - if (!host->scb_virt) { - printk("inia100: SCB memory allocation error\n"); + if (!host->scb_virt) goto out_host_put; - } /* Get total memory needed for ESCB */ sz = ORC_MAXQUEUE * sizeof(struct orc_extended_scb); host->escb_virt = dma_alloc_coherent(&pdev->dev, sz, &host->escb_phys, GFP_KERNEL); - if (!host->escb_virt) { - printk("inia100: ESCB memory allocation error\n"); + if (!host->escb_virt) goto out_free_scb_array; - } if (init_orchid(host)) { /* Initialize orchid chip */ printk("inia100: initial orchid fail!!\n");