From patchwork Wed Jun 16 06:36:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 461357 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp312870jae; Tue, 15 Jun 2021 23:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIr/tOhOPBDB0xtvisGAHEMrZu89paX362fnbb1y98A04x/7o4IFXQk32jnpEOpWcfWMBI X-Received: by 2002:a17:906:b0c6:: with SMTP id bk6mr3663989ejb.97.1623825478346; Tue, 15 Jun 2021 23:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623825478; cv=none; d=google.com; s=arc-20160816; b=pg2wrVujfZqGcrLScGIxS3Jxd5B6fzPoUsnf9iiKLzM9zU8Js7xQgHRL181DkROEm1 gI9+0x/DufAXLFwXe3qPNURdYSlEVWEKv9lm7TxmbnITtjgatIfxXXSs+3kkU1GCxLOD BwzCEy0zLeE6gqdfNyqvAEdFjGW7vIG7THfXWLI74rBNiz7L0Iy9divVzYmu4/se4bgx dU4zRNIAgUJto0kaP6ezOFEwkaa5lbDWSbqvYXN+I19Nf8vwygkowo6jI8pmE0lEKR9M DYe+EhPcQXINzg5KaairzyrPDloBJP8K99aKnKa8HuquPI2yk0Frs+0aKQXV+hxjQ+TC DS7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0ja+SEjlfoMy/q17SwobkazlKTHLMnrOpmZ18MTDGSg=; b=nPuc6dENRslfTfG/olbmSTC8dldy1O7TiFPeGcZNALgWGUGSXRxmQbIz2klZWJ0VYX Rd2Zefj6uPvn4d1mbjA3DKOZQE/lhVXojeCrgDwg9EJt9QuurVsNkgdOiYmZkxZdBi9g eCvjFIiv8/FdWD9IYUPo60qrn67/XM9H8EQ1yV/A5P8vLfUT0roB4mRx1wxiSMqT3Igu WOrGzOK8ztJU2cNViLUli4gki3b34yNQCZT8yG1yMBihEa9edHkaHKALsrDbcHhYyJJg 4MOTD2otjQeVD54hxoQ4BQHRbt/lReqkbuH/SEXti2VsQYTSI31sY9Tsy2zykfDDoxvx 3/qQ== 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 z16si1386040edb.194.2021.06.15.23.37.58 for ; Tue, 15 Jun 2021 23:37:58 -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 S231422AbhFPGkC (ORCPT ); Wed, 16 Jun 2021 02:40:02 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4929 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231383AbhFPGkB (ORCPT ); Wed, 16 Jun 2021 02:40:01 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G4b5J60YBz70Md; Wed, 16 Jun 2021 14:34:44 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 14:37:54 +0800 Received: from thunder-town.china.huawei.com (10.174.179.0) 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; Wed, 16 Jun 2021 14:37:53 +0800 From: Zhen Lei To: Vishal Bhakta , VMware PV-Drivers , Karan Tilak Kumar , "Sesidhar Baddela" , Nilesh Javali , GR-QLogic-Storage-Upstream , "Adaptec OEM Raid Solutions" , Brian King , Satish Kharat , Hannes Reinecke , "Manish Rangankar" , Adam Radford , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH v2 05/20] snic: remove unnecessary oom message Date: Wed, 16 Jun 2021 14:36:59 +0800 Message-ID: <20210616063714.778-6-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210616063714.778-1-thunder.leizhen@huawei.com> References: <20210616063714.778-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.179.0] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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/snic/vnic_wq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/scsi/snic/vnic_wq.c b/drivers/scsi/snic/vnic_wq.c index 1e91d432089e805..bcf05057861e1fc 100644 --- a/drivers/scsi/snic/vnic_wq.c +++ b/drivers/scsi/snic/vnic_wq.c @@ -48,11 +48,8 @@ static int vnic_wq_alloc_bufs(struct vnic_wq *wq) for (i = 0; i < blks; i++) { wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); - if (!wq->bufs[i]) { - pr_err("Failed to alloc wq_bufs\n"); - + if (!wq->bufs[i]) return -ENOMEM; - } } for (i = 0; i < blks; i++) {