Message ID | 20210616063714.778-10-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 a26csp312947jae; Tue, 15 Jun 2021 23:38:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxQgrAyRKSZs5wQXtbJhbcKmy6ymcv8ONnea65orYwwQCJArjkT0rZ1Wl+JfyiPezqvIY2 X-Received: by 2002:aa7:cdc8:: with SMTP id h8mr2203457edw.323.1623825484630; Tue, 15 Jun 2021 23:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623825484; cv=none; d=google.com; s=arc-20160816; b=LwZIPKS8xcmVuveacjx8hGCur2OmzpeTn8mjW4chF+Tta2GJ71lcpr96+aJqfno031 FfcdiUPDo39EL0SQehX3/Myo227ZdeVasNHVShLmkOE4OUx3GLznkaPV2R2BTyt1yoov zlP/NL5uKrUftNS5ZC7IXYH0CEHOT5LHtaJIJiiRETS7XJxErQPnZj/wFulXcmyGH3pz eTGpqcVvwdeszkHp88HMnZEzx+5kgzr9vJkEMnll5P82ho8j2JF5C1NE+uiWlgibFzOX Pb1c2/9yDtmV0JEKc3Wb5s0ekeIIzWBqV66tPS+GQIeCdeWKQ4bMOCgezc3xgxUymhpx vjxg== 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=2W0CcIAhPGlNQpFaTw1rplvc4QXu6fBA9yozf6kOW6E=; b=wvDgYq0PQj2L0S+msp9bw0V++b42oz9Wkkul5oqwyc8SXFyOTyP0mmMBT2OdN6X97H PA4oIlKqYWqYm29DJIYiJ3mDHpj7lEuZxYEle2WZDVF5A9FS9NDfWplgoieLPRTP99Yg h0BEOXsRiiEu3jUYtfDMf6BDOLENpaAYNML+huDrAxz9FpY+tcMxJNMZyFGyZFG1wzC2 7EuNS6PSOHnnlouaUAG5Wr01x3wrP5OlWDmTI0qYF4s4AD/EqWjFFV/yObGSuE8Od6Pd ulWkxdyutUd/48ppuDKFIjLT/IFh00OCSPhnQiOb6T1Z62MRu1/1PLUjXI5zcJVnpYwR GbDA== 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.38.04 for <patch@linaro.org>; Tue, 15 Jun 2021 23:38:04 -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 S231548AbhFPGkJ (ORCPT <rfc822;patch@linaro.org>); Wed, 16 Jun 2021 02:40:09 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4931 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbhFPGkE (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Wed, 16 Jun 2021 02:40:04 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G4b5N1074z70Mh; Wed, 16 Jun 2021 14:34:48 +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:57 +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:56 +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 09/20] scsi: mvme16x: remove unnecessary oom message Date: Wed, 16 Jun 2021 14:37:03 +0800 Message-ID: <20210616063714.778-10-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/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c index 21d638299ab8e56..5c2f5aa572d5677 100644 --- a/drivers/scsi/mvme16x_scsi.c +++ b/drivers/scsi/mvme16x_scsi.c @@ -50,11 +50,8 @@ static int mvme16x_probe(struct platform_device *dev) } hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); - if (hostdata == NULL) { - printk(KERN_ERR "mvme16x-scsi: " - "Failed to allocate host data\n"); + if (!hostdata) goto out; - } /* Fill in the required pieces of hostdata */ hostdata->base = (void __iomem *)0xfff47000UL;
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/mvme16x_scsi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.26.0.106.g9fadedd