Message ID | 20210616063714.778-11-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 a26csp312965jae; Tue, 15 Jun 2021 23:38:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNwPi7joIl0bVaj5KWHutmUGJ5NJvm20yuUXjlg30+BfEZ14M7C8hjIGv8q4l7iTPNABWA X-Received: by 2002:a17:907:6f6:: with SMTP id yh22mr3525097ejb.257.1623825485763; Tue, 15 Jun 2021 23:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623825485; cv=none; d=google.com; s=arc-20160816; b=Esboi0bsJ2GEiMA1X70oH4TpTRtS7qQnhC/67TA6/VOeEy42VZ0nFGUoODReFgQ3Iu HucoLgv0MDB644VDCFAo1rO86trU8tNamjEmCGq07MW8Mwekf+RONjQ+kQwlwslaUnxT uJjsh8frHf709ivcK6VBFiMCUq7C/aKCe+qvEZuhvapHMmAsNpflpIjgWH2TIxhD9y/s aD9qNxOXpWvPE+lA2NII/YNLFu7UzncjGnAIgIlfaM2Q1J9ivr6T9BHOdltUPBRqUhyj Rms2PCpCsnAjfjE1bdXESyLznsi82uIESz2h8EgAJ2HCrnHzBbTeBlJ3o5qu8loO8FlR xXxw== 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=aeEdd3b9DilkP7dieoq4W8Jk31A1/pZ5WMu1lBAaONo=; b=PTuf1MWv6romdHY69m47f58yENSHhLFt5Iv6ZfwON0VS7zjBlkpzpwEde2w9LML9WM m0phmm/SgJ3qMJeylEQ4tOfgXvdGqnw98qc8cCrj61DGbnDwTilMuxXSMJemNbc3cvAz uQ4Rmt36ec/i3Khk+bYTDvqJ7c1VOA5Upis/8Bukfz6HBuIMBN1zPJTlEDGWHDTYfLtD xwkhHnEPvvWnlqK5PwNn1dmaUXFq4At8/TCiLFD3SD4E218Zcunoh1xM/ilvq3rH2/KQ PL6/np5Z/4kAec1InP6R8QK7aZ99ts8bwkFzGkjx8Rjizg+pTcc7fzmQJBnns6H/c/wK DV7A== 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.05 for <patch@linaro.org>; Tue, 15 Jun 2021 23:38:05 -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 S231549AbhFPGkK (ORCPT <rfc822;patch@linaro.org>); Wed, 16 Jun 2021 02:40:10 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4932 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbhFPGkF (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Wed, 16 Jun 2021 02:40:05 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G4b5N6nvsz70N1; Wed, 16 Jun 2021 14:34:48 +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:58 +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:57 +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 10/20] scsi: libsas: remove unnecessary oom message Date: Wed, 16 Jun 2021 14:37:04 +0800 Message-ID: <20210616063714.778-11-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/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 4aa1fda95f35dd4..a1c7e2c42c5c378 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -552,10 +552,8 @@ int sas_ata_init(struct domain_device *found_dev) int rc; ata_host = kzalloc(sizeof(*ata_host), GFP_KERNEL); - if (!ata_host) { - pr_err("ata host alloc failed.\n"); + if (!ata_host) return -ENOMEM; - } ata_host_init(ata_host, ha->dev, &sas_sata_ops);
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/libsas/sas_ata.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd