Message ID | 20210616063714.778-4-thunder.leizhen@huawei.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp312854jae; Tue, 15 Jun 2021 23:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg/qS7xyQuDEwj9WXDGXPkr2ske2hXdkiq4+fC+CqKQpmMF2BycZYFWtrDpIuuMbOk+yV5 X-Received: by 2002:a17:906:4a17:: with SMTP id w23mr3704285eju.460.1623825477645; Tue, 15 Jun 2021 23:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623825477; cv=none; d=google.com; s=arc-20160816; b=wMr4+dRMX4f775pdjj4eICWfKCo1fgGAaDyHRTNdOGRiUEfCf1knix5nX1JEEMFwdH 31Ck6tJyMAe5ln7ktci6BwVC9A9Aj68lI2YcHSghnQ6gyO6lQe1nkxVMg4KCHXJg5Zo2 gGM/sikEQDidMZWFLHAcYmCWy5ZEma0pA2JnLv1zD5lmPNNE+ghN9FHUUM9jNMuZDMxv WlwBpVqHbTyAnhH5s3g2w3gLi0ulSWuJ3wrq828d7fBrTrD7rnfgZ4tbIXl6hnSSxotV AowazCk5C46Nh9CBrASjhlrasyWT3IM8+Msc+YadYsAyvWYV4COLZVs/bTPiefMEej2s J6AA== 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=q0Du4d7V8lktGmUS6mG4NwErGeIecMsS574/Yviaa0k=; b=DcoxD64RuDVnxhJgvUELVeYcazSaRfyiVGBhtHV6zoqzgbirkm0h6I9KH7vcle1+qo MbuaU2kKqktYB6drrKf9h0iHVJDsjUfupkCkjhz//oFKtGrpzakfeWpu3KdjUHnJI5KS Q7W3mo851JaOWFi6mxmBUavZWx4yOOYhlnyQcBj1gxkar8IoT5oFo2DR0N4h6lmd3lMc M0YgW2oypATg9yAdFFX4yKDKvH/I5WhSKG/GCDQ8zXIuz2b1o/AkQnhUpWLdxFXjzSz3 ZWWeYDgfwZtDNfjPp9nU853F8gdjbCCgJDgAW3ElMOje8kJ0/MyZMiwk/LWqzcNbiOlk k+Yw== 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: <linux-scsi-owner@vger.kernel.org> 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.57 for <patch@linaro.org>; Tue, 15 Jun 2021 23:37:57 -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 S231400AbhFPGkC (ORCPT <rfc822;patch@linaro.org>); Wed, 16 Jun 2021 02:40:02 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:7288 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbhFPGkA (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Wed, 16 Jun 2021 02:40:00 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G4b375lqBz1BMSW; Wed, 16 Jun 2021 14:32:51 +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; Wed, 16 Jun 2021 14:37:52 +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:51 +0800 From: Zhen Lei <thunder.leizhen@huawei.com> To: Vishal Bhakta <vbhakta@vmware.com>, VMware PV-Drivers <pv-drivers@vmware.com>, Karan Tilak Kumar <kartilak@cisco.com>, "Sesidhar Baddela" <sebaddel@cisco.com>, Nilesh Javali <njavali@marvell.com>, GR-QLogic-Storage-Upstream <GR-QLogic-Storage-Upstream@marvell.com>, "Adaptec OEM Raid Solutions" <aacraid@microsemi.com>, Brian King <brking@us.ibm.com>, Satish Kharat <satishkh@cisco.com>, Hannes Reinecke <hare@suse.de>, "Manish Rangankar" <mrangankar@marvell.com>, Adam Radford <aradford@gmail.com>, "James E . J . Bottomley" <jejb@linux.ibm.com>, "Martin K . Petersen" <martin.petersen@oracle.com>, linux-scsi <linux-scsi@vger.kernel.org> CC: Zhen Lei <thunder.leizhen@huawei.com> Subject: [PATCH v2 03/20] scsi: bvme6000: remove unnecessary oom message Date: Wed, 16 Jun 2021 14:36:57 +0800 Message-ID: <20210616063714.778-4-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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
scsi: remove unnecessary oom message
|
expand
|
diff --git a/drivers/scsi/bvme6000_scsi.c b/drivers/scsi/bvme6000_scsi.c index 8d72b25535c5e72..fec971bc9a7d7c7 100644 --- a/drivers/scsi/bvme6000_scsi.c +++ b/drivers/scsi/bvme6000_scsi.c @@ -45,11 +45,8 @@ bvme6000_probe(struct platform_device *dev) goto out; hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); - if (!hostdata) { - printk(KERN_ERR "bvme6000-scsi: " - "Failed to allocate host data\n"); + if (!hostdata) goto out; - } /* Fill in the required pieces of hostdata */ hostdata->base = (void __iomem *)BVME_NCR53C710_BASE;
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 <thunder.leizhen@huawei.com> --- drivers/scsi/bvme6000_scsi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.26.0.106.g9fadedd