From patchwork Thu Jun 10 08:22:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 457838 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp176690jae; Thu, 10 Jun 2021 01:23:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzndiizE2BzeZnhQ7hoJaoa7MB3tSdFd9x7udU1A07Xr0AITo+nwrZLykwotcIEys8YAIei X-Received: by 2002:a05:6402:3198:: with SMTP id di24mr3517982edb.244.1623313396186; Thu, 10 Jun 2021 01:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623313396; cv=none; d=google.com; s=arc-20160816; b=lJpadXA4bBxgntsfqTaTGoFBAZqIOkULaueooP+Z5DYmJqxqZ5U3lFEVk4uDHsOx5e Dxyhqs2Xhhz//erdKlqE0bF6ZfQNZYy7+8DU3TyGDWfcX4tnweWe6o2QY9Dflp1Qqjy5 XZ9gfCB+Sd9qG7B8G5/lB03paSps0HLX+m77M7RhrppvuTAagmn0JzqnxxqXuAXKaGf5 T95Z6VRCrMJxV4lQ659CZXv+b4UcpS3JcoEdtvXwJ9LNx4NRdQ9hC2N7zZoqUoGebsky lgyIAoDb1763cDQNvttUoDbjyLMCXESGEBYs72v49iNZ0583/YEJrz9879s3CpVK3MIr M9Eg== 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=5i4afVUNwLChb6pLWulZIU4iajV+yGqUhSYjr0H/k/0=; b=HnihiknAGHvw966FptN+9a5eQVNqaCSieEf9artwTNMN1jrPtokDia8kMHP3DNKM92 +XjSAJzjlGGcTscLRkNf95y6XIvSPHVk902L0JmOmiiselMABRAJj2EpHl4VPM+1XqUP sNSiLL2HDT4Zq/Za/UVYqdwkHmsr4n1r/ijo8fJnjky9PuWpLAQiBDjtGcECSFMC/xz7 urKElTZ6L8kctxlNP099zk9GygDNrXSE9IXRwjiIPbz9g3d5WmvMqDszFeYciaCGn5tO WC32HufDOJr2EMA0JVZyzY1XhENvfc4uflFrXPuj5ZkGiWT8kY1gGbik55ZO0vXtDxeb uEZQ== 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 u11si1828317edx.42.2021.06.10.01.23.16 for ; Thu, 10 Jun 2021 01:23:16 -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 S230332AbhFJIZB (ORCPT ); Thu, 10 Jun 2021 04:25:01 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5368 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbhFJIYt (ORCPT ); Thu, 10 Jun 2021 04:24:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G0xhM28M4z6txh; Thu, 10 Jun 2021 16:18:59 +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 16:22:52 +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 16:22:51 +0800 From: Zhen Lei To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi CC: Zhen Lei Subject: [PATCH 1/1] scsi: zorro_esp: remove unnecessary oom message Date: Thu, 10 Jun 2021 16:22:46 +0800 Message-ID: <20210610082246.16613-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: dggems702-chm.china.huawei.com (10.3.19.179) 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/zorro_esp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd 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) {