Received: by 10.223.176.5 with SMTP id f5csp916858wra; Sat, 27 Jan 2018 12:17:22 -0800 (PST) X-Google-Smtp-Source: AH8x226dMdraz//3m0bqScB7vIZFMtNSqQ0atJqrDmO1a04geQF0HubwtJ8R8thLWeiNxcUkCzNW X-Received: by 10.99.179.77 with SMTP id x13mr16824996pgt.135.1517084242712; Sat, 27 Jan 2018 12:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517084242; cv=none; d=google.com; s=arc-20160816; b=zvuXRghoc+TuSpuMzODKe8lv9156oh86ueYtRp2KJ4dTkSrOz/ou11ueTMYSe2iIwJ NN5J2lJ6v2Jdalrg2f+CMjPhOcoxqBaiROIaat1Cj/yyVk7IbVmarU2CZCvVVT8TIwrZ ud8rooxF1Ec6NW8Jd5owzP5rd1tEEj1GhZFqOAbs5LGDtKPyae5rIJIg/ziRF73rQdd8 KXEosPJu2hzgkaPBgnY75qF7Isna8FaMhrNwfT4J7GIx54gzKEuiSiuPXFricSVgVDQN 1lA/HZngZEy6+cwfZ8SdOWjgqrK1wQFM+5Fr7bNdVZqWQvFGfvdRlInwS9xbVf8lB2Wt Q5Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=5ts+Bv28qZKfhnfRzXJ/QCqr4S2H3uSJYMI8z8EcfYk=; b=AJ/9Z01Z38oVs5YkoKLfA6tVItgvQYPKZQgQRtsf1SVjHxbKvenans+nyNdLdUt8Vu OTG3TeIopIorHuz/ERBvXcUKNuj9MbXU+FKcfgVMUEJEEpOgCZWz/JJeke7+i446NSsY 7xRinQSs6XdPVgJfjcOZ9Pr8q2AgxzvqgnmFjBG8yK8SISyFm3CBZd/MluD0iHxgq/Um 40/bofnKn/cnoyFbrZTuFe+fYmS+gB3TnZhCZ5X/ugUrk5KD469INkLh6twyWCK1uaDD Vw3l5gRhNxJmVg2QmJJEJxiw4eMhpTa+CDvC3PuNU3NYIiphnHYgXVjnTw9Yn0EYX8km //UA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si4763498pgf.422.2018.01.27.12.17.08; Sat, 27 Jan 2018 12:17:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786AbeA0UQn (ORCPT + 99 others); Sat, 27 Jan 2018 15:16:43 -0500 Received: from mout.web.de ([212.227.17.11]:62613 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbeA0UQl (ORCPT ); Sat, 27 Jan 2018 15:16:41 -0500 Received: from [192.168.1.2] ([78.49.117.84]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lj2I6-1fBpFa0kFq-00dDDr; Sat, 27 Jan 2018 21:16:36 +0100 Subject: [PATCH 1/2] RDMA/bnxt_re: Delete two error messages for a failed memory allocation in bnxt_qplib_alloc_dpi_tbl() From: SF Markus Elfring To: linux-rdma@vger.kernel.org, Devesh Sharma , Doug Ledford , Jason Gunthorpe , Selvin Xavier , Somnath Kotur , Sriharsha Basavapatna Cc: LKML , kernel-janitors@vger.kernel.org, Himanshu Jha References: <19c755a6-8c52-bbd5-a425-48fc08cecd4f@users.sourceforge.net> Message-ID: <1d57e7ae-b04a-3875-d89a-c4e3c57b96bc@users.sourceforge.net> Date: Sat, 27 Jan 2018 21:16:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <19c755a6-8c52-bbd5-a425-48fc08cecd4f@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:a7iosqqFWFupJMXkoYsn7afXKbw7araw7I8QLnUkLLDbAp/riH4 nQQmSPb8ZxJ1xUxqqx64A5J70W7WCnrNn5NxIy8I79+OvVQfeFsSomoxqHVEBczXaYMbYJP sd9UF2aWXWajEgjKkiIy417/HDLwOL17WydjYBXBhc5uxmtyqV2UvL9wvvG0Zz6xj/Mv7Ui Ly68Jw44QHMR3deX8DbLg== X-UI-Out-Filterresults: notjunk:1;V01:K0:YkQy1MGNz+g=:Q+ZJtz+csxb1rj7JsAIXGr PeV/hF/W2w62ESQivbnReDXasBtXeT1k0XmBb6GbaN088P9yMqNxWzQmEuGVwN2M33nlyfriD aCpJe1OKph7CX/SRtTCtfxBQbpMna29evJdqv29EmYdcTCQDIR5IztkRqD3nWHQbGXnani+iM G3zL/s/i3EFigvt8cBGpSjEHQm0MYlk13h0rHEpT7LuEXtCBZnpetWbCpCjn7Nr8mvht+mZgX pk/HffxWmmUq26YONWBbZyy0V9re1YmDFyVh+09ACeZOjbithxCvSaNWXJE3EIsdHqyKaQaWs z5JfhS+O3lGA3NDEvHz8I4r89nlEIwkcjYD1enLdsfI981oU0gY+bkh7jgKQwRVxY5tgXe/bv aFN4FsDtn8PiAbZz4/hxh9nZpuuDLt9EhnO7Cj2tMTjE4Gr1qqmza0Z9krWk9VuYRa6KCriLr hw8D1/u7JZmQEGHj0wZ15/xwclcELG1zpnnhPZSuZSLRGO+I9n0oH2+UiRVU13tpLwCegF5b7 ylwYElMhrbaG3AM6S0/WTqmgXaj2ec33iuihutMqzajxZFAtXNLc1xpDIleH+E033gFTPX93Q ebUsNzfGGgRRtdNjfZcagF71ZSRxuZ8t/TP5eQaLGxb7hNSBwPSEyztPz5/v0Wky+F+9Ju+9u 28EW7HEIK9DaShoPc2evVrYrZEARDGvs1OsEY6hJVzB99osxr1/zoj+atk4B5j9UndJRN/RD+ DgEvQqwLABGZnPv4WHt2LyI2whvpb9pLi645zii6S3w7FjWTjzpoS4B1SS5AvyAFI6Rpx6v7p GbDwAwCmOBk7ICPNSusJJGaqREjrWq+DqSq+tIjBCR1f5mwXPg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 27 Jan 2018 20:40:11 +0100 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/bnxt_re/qplib_res.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.c b/drivers/infiniband/hw/bnxt_re/qplib_res.c index ad37d54affcc..9dacfd24869b 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_res.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_res.c @@ -707,8 +707,6 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res, dpit->app_tbl = kcalloc(dpit->max, sizeof(void *), GFP_KERNEL); if (!dpit->app_tbl) { pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem); - dev_err(&res->pdev->dev, - "QPLIB: DPI app tbl allocation failed"); return -ENOMEM; } @@ -721,9 +719,6 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res, pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem); kfree(dpit->app_tbl); dpit->app_tbl = NULL; - dev_err(&res->pdev->dev, - "QPLIB: DPI tbl allocation failed for size = %d", - bytes); return -ENOMEM; } -- 2.16.1