From patchwork Thu Jun 10 07:51:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 457816 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp159305jae; Thu, 10 Jun 2021 00:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU/fhR2d7i1824V57qEEYvoB81LSOEGNDSAMvbjXE4IIX44OdcOaXo4EwGR0AJpJnsHwQl X-Received: by 2002:a05:6402:1d38:: with SMTP id dh24mr3500114edb.18.1623311529079; Thu, 10 Jun 2021 00:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623311529; cv=none; d=google.com; s=arc-20160816; b=y5cMFVqrGm9rDPOz+vN2wmCakZlbGSw8M1rdbU5VzOQC9QpU2CA8SIwOVPoUs2PYoC Ykio4i8f6v7dXF0QcB8Nj8rzUQLyins3KfIilIXcZV1sU7/WhVJIQtN+DEYelhmr4BO4 l6twwbBOHZeZ/ESe2GtP5u+Yfan80r8G4CdZ0ahsyN30+J4o6tr3/KWkz3hoLnM054eY kuw5jvBUG5SHmVDGGPYKpac6bXUDwZ3pyVS6815lldhC1DUGqHyGa31gfanqn2RVmArW DRM2TqBYEucx6iRLmfpCIbQsbasXNv7xJdS/xgSFWcSBQ5JSr5I4UKd4TquMnQRnJb7P jX0Q== 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 :message-id:date:subject:cc:to:from; bh=fhEKdy7MegzkcgmB5BjytX+lfEsoKR0WXtw16wtGaTI=; b=s4TUnTlx1/z16AqS+nsr1VEbQ1tzWLmpN0sCaTIxL+/cyjq1wmKtm25dUEYmPjh/fL Hbqrfz8kDn7BjhNaWwHF7obo+A1UBhrtx2spAtWzsAJV6eBQWESYvliilukHZUt+F6NP ELsKIGa1Uf6PuZjcWWMdCb6GmkOPBgyXZcARLwjXHwybs7Ws1UxDC1A5IVvW9xUM154p vQenwOp/mHtl6fFUmtSM0EH/j/Y+/cWzThfWC+WcBhJooogqvUbNpfy5lD8eKJ2GV+a3 ya5Ap7B7VuN0dPIUycqhUjY5UAB3ZHsD47xrIjZr2UIzTyB4f6YUmXG2ZETClDRHk0bb 0fPg== 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 i17si1640207edt.91.2021.06.10.00.52.08 for ; Thu, 10 Jun 2021 00:52:09 -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 S230136AbhFJHxa (ORCPT ); Thu, 10 Jun 2021 03:53:30 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9062 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbhFJHxa (ORCPT ); Thu, 10 Jun 2021 03:53:30 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G0x1P5RbgzZcVb; Thu, 10 Jun 2021 15:48:41 +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; Thu, 10 Jun 2021 15:51:32 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) 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; Thu, 10 Jun 2021 15:51:31 +0800 From: Zhen Lei To: Hannes Reinecke , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH 1/1] scsi: fcoe: remove unnecessary oom message Date: Thu, 10 Jun 2021 15:51:24 +0800 Message-ID: <20210610075124.15818-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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/fcoe/fcoe_transport.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index 4d0e19e7c84b91a..815915734d88d43 100644 --- a/drivers/scsi/fcoe/fcoe_transport.c +++ b/drivers/scsi/fcoe/fcoe_transport.c @@ -639,10 +639,8 @@ static int fcoe_add_netdev_mapping(struct net_device *netdev, struct fcoe_netdev_mapping *nm; nm = kmalloc(sizeof(*nm), GFP_KERNEL); - if (!nm) { - printk(KERN_ERR "Unable to allocate netdev_mapping"); + if (!nm) return -ENOMEM; - } nm->netdev = netdev; nm->ft = ft;