From patchwork Thu Jun 10 08:20:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 457836 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp175222jae; Thu, 10 Jun 2021 01:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKAOOOU+w3LJ9RUR2bCJSq70BUqWO01wFuAk+b5h/comnmQcmUlu6a8izA5ihcwDSMgR0c X-Received: by 2002:a17:906:5289:: with SMTP id c9mr3390694ejm.342.1623313250956; Thu, 10 Jun 2021 01:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623313250; cv=none; d=google.com; s=arc-20160816; b=AVT7e1oS5dt0o86fRQnKJXVJI4gazNeJFhTkYVAPRRSfWz+Bf3mZycR/Y31DdJGM48 1R2nulUuYD2nBOLArB+AN9dIKShvVyvStHQhORrVJaSmTeDIbGDAkQEFBzJYY1FUlAhJ xwp+V7aVIf/RJed+XphoqtynTONLCIexIomQaBYrlTTbC2YD+GwQLRJyoJkDehY6iN1A TbAOOYofB22x9AURDdJq/QkrPOGaJJ6t8133zrBFq58pvHIROTWCB70/EkNAakobe4ZX 0dUolVvZEvD3slUbPiynrN3BjdNY5cjXIs1obsuixUbjF/AmjFZv53e1xVkWeVwybyo7 NN3A== 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=bxpWwvfghjB2GGx0CJUzr8gDfxfcxb4G3tpDf+FBpdc=; b=Qh0YY3wIQyMRUY4oSkdReVMXwKsGWdhpehiLhPM++gmmRYfS5MtZwCNNaHX1c7c1XK /Zdcvjcu23P0CR5W0EsVAUaNRD+1lZvExkZtqNrxKIgNO6OcKczqQ8MUWC4bAn1x07rQ ppfmah5LMJoHlMGM4QTGQ/OSir4K9KhLKXoWFgB7flDyHPG6WwQGTwK2fkL83dKmbs5T Be21j5J1i4bvwlJthHNgCabcZuShA6088FM5IEb8I5RVVB4EdMd1zhQbKa8TtL+9QmLz AO+hr8TbWzBoQnOZcd97hHovARI0y2yHzXsmwaqm69DL4sX6DdfgqW0NiA3AMSMLrvJW g4CA== 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 n15si1865038ejl.587.2021.06.10.01.20.50 for ; Thu, 10 Jun 2021 01:20:50 -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 S229823AbhFJIWM (ORCPT ); Thu, 10 Jun 2021 04:22:12 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5483 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbhFJIWM (ORCPT ); Thu, 10 Jun 2021 04:22:12 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0xfW6KGnzZdgl; Thu, 10 Jun 2021 16:17:23 +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 16:20:14 +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 16:20:14 +0800 From: Zhen Lei To: Jack Wang , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH 1/1] scsi: pm8001: remove unnecessary oom message Date: Thu, 10 Jun 2021 16:20:10 +0800 Message-ID: <20210610082010.16507-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: dggems702-chm.china.huawei.com (10.3.19.179) 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/pm8001/pm8001_sas.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 6860d5a9ef83b44..fff01a6effc4dab 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -118,10 +118,8 @@ int pm8001_mem_alloc(struct pci_dev *pdev, void **virt_addr, align_offset = (dma_addr_t)align - 1; mem_virt_alloc = dma_alloc_coherent(&pdev->dev, mem_size + align, &mem_dma_handle, GFP_KERNEL); - if (!mem_virt_alloc) { - pr_err("pm80xx: memory allocation error\n"); + if (!mem_virt_alloc) return -1; - } *pphys_addr = mem_dma_handle; phys_align = (*pphys_addr + align_offset) & ~align_offset; *virt_addr = (void *)mem_virt_alloc + phys_align - *pphys_addr;