Message ID | 20210616063714.778-2-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 a26csp312803jae; Tue, 15 Jun 2021 23:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywB4af3i3SacuE5iO5fXNcJ/ThZaQQ/ONUd3tKvA7DSXtoSHZDVycR1mWReuv82hln8r+i X-Received: by 2002:a17:906:2510:: with SMTP id i16mr3617919ejb.218.1623825474821; Tue, 15 Jun 2021 23:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623825474; cv=none; d=google.com; s=arc-20160816; b=JtVbskrWFwyD9SLnKF/B7XT1OOIiknm8F8XvBBj+mnLRQ+p8h2gq+Z4msWC0WFvITF UbQ8SbSnyn0WemcICEc9Y5SthSivs4JltTTwOS2GUjv4Ete6Va6BiO/vD4RcPhJhRlqH d0n4lnkZ8303bruN1/+c3+KASNykVsCYa752iSYvHKtkuL2Ppu0ZWzh0dQ2Emmk+MfZ9 G/07xANj8dYfqMg17k7oy0nPAqBmNmjzVNXpZ+YR/gwMe4B6YNs+STuItdTGaKwwAHJd RUr4zeERf5SXXjxnD70w+rtSs1LlWxRrj3crS/5xLazl7aSOi1Cjb8yEBks52qmT8eTO VFZQ== 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=5i4afVUNwLChb6pLWulZIU4iajV+yGqUhSYjr0H/k/0=; b=kzV6p5Mv5vBy3XT8UnuYx1HWmFbynFN3/ek1aeTHKFSCBZ7JDC8KuiW0222fBfQ6hi /jzBpelH/BmiiXfmmhD+aTl5Sm6KIjDP3wSiGPzjg1AaFQhyIKrp5vZYp6OcoESr74/4 iUBztygmf0nKG8ejLTZKAU3UGaWsCoh5yOJOM1S1Nwx495N0sgEY3OnZY6hZXujaWGt6 eMRwqMp/6/pWI8Kz4qEXeNJJnvYt9uJjS2hTmZIJxKlH5r+on6tIOWFApjGmNNKsCx/p 7wCqT+sLG0j+YTXGfvaw7XVyTKc0hRAIfFFhmKxDnc8YfOKXyNS7js3TR8V8zsA/N5eu cnsg== 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.54 for <patch@linaro.org>; Tue, 15 Jun 2021 23:37:54 -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 S231258AbhFPGj6 (ORCPT <rfc822;patch@linaro.org>); Wed, 16 Jun 2021 02:39:58 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:7322 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbhFPGj6 (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Wed, 16 Jun 2021 02:39:58 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G4b4J0rsLz6y9q; Wed, 16 Jun 2021 14:33:52 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv711-chm.china.huawei.com (10.1.198.66) 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 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:50 +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 01/20] scsi: zorro_esp: remove unnecessary oom message Date: Wed, 16 Jun 2021 14:36:55 +0800 Message-ID: <20210616063714.778-2-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/zorro_esp.c b/drivers/scsi/zorro_esp.c index 928c8adf5cb33f4..b03870b4d8dcaaf 100644 --- a/drivers/scsi/zorro_esp.c +++ b/drivers/scsi/zorro_esp.c @@ -727,10 +727,8 @@ static int zorro_esp_probe(struct zorro_dev *z, pr_info("%s found at address 0x%lx.\n", zdd->name, board); zep = kzalloc(sizeof(*zep), GFP_KERNEL); - if (!zep) { - pr_err("Can't allocate device private data!\n"); + if (!zep) return -ENOMEM; - } /* let's figure out whether we have a Zorro II or Zorro III board */ if ((z->rom.er_Type & ERT_TYPEMASK) == ERT_ZORROIII) {
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/zorro_esp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd