Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932075AbeAHJlS (ORCPT + 1 other); Mon, 8 Jan 2018 04:41:18 -0500 Received: from mout.web.de ([212.227.15.14]:61041 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756174AbeAHJlQ (ORCPT ); Mon, 8 Jan 2018 04:41:16 -0500 Subject: [PATCH 1/3] GenWQE: Delete an error message for a failed memory allocation in genwqe_user_vmap() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Arnd Bergmann , Frank Haverkamp , Greg Kroah-Hartman , "Guilherme G. Piccoli" Cc: LKML , =?UTF-8?Q?J=c3=b6rg-Stephan_Vogt?= , Michael Jung , =?UTF-8?Q?Michael_R=c3=bcttger?= References: Message-ID: Date: Mon, 8 Jan 2018 10:41:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:eeiOadQ834KQo18Syv/tIXokdeEayiuf61G39qz1OXFJ9lMnRjh iVowScHaG5U/SSrAxasRU6N2zX5aohNNHkL+94wN0Oz91F1XolEinhACuUgkY2RnJNvUHHG CpbVQr195S7yfrGHvHakqg2Mta6EQyljDhtmuo726lMq+sirSAhcgAGC3z9KQGUgQyZOe0C iaJM1HyIwLbhdgVXqHdlg== X-UI-Out-Filterresults: notjunk:1;V01:K0:0cM9Sj3n7ZI=:c7BoAzU/hwn3NaTrtbCLBS 9aFtPCG+05SP6f4aYwb41cPn16jK6tWLodWCJnq+LL7OSeRuRWRWqeXIifkoHq5A14lM/A6nP ksOJVU2ddGZMgmTtfZOOsOw5hv4muEH0muVS4yxjaQXa8/YhdhYHdpMW5Cx9PExGSI0D1EiP5 5wjM3i0QLCHfEpHqrWujjwWxLTttL/tAArW3B9xANHI3NApRUxGtKBWPLM17bPoTk1b3wza0y e0ZEEvkByeU1Obu2P44QAAl8nLOgzxAaj6yJ9xuFinVYedojJtjxOdj8lw5Z/h3hzcL98Uv7f XuC7jy+Wrajv9Ey10CKqpmmxWLHC6CWlvR/27WaseMwreeruw1HM7SYoH8/q32u399cJrEi6q SQHrKfZupOotxvl5JCfswL9B2jmLyPKYyGEqq4YNC/bwjd64orMLqj0DHjMPoE/P7qihu/x3A xVSyOSvfaHyftd3rwCXLte+UtzpZ9A/joTuWq4ZlTvssigsFU3SjUbd4fYT9furD3VjbsA39r pq1DSdryXwoXpJlRpnKimZM98HZ1QtqTgqOloOzjbcvF0DuynxpxksmDSKhog+bbCE/sePiXT JujS1TVDIMKDaFnOvONk3lbYJy9c2ir2A660PeeRfIbFc618x+gzO6bsVhQofqmLCYQAlaTS8 WxtH9ifEPt5ZvlHLPmSf4JdjypaG8v434gpDy7PLF6BF0zooD0UN/toNZJtpQepxPDG2WA4J6 DIfgoY3l2lTv78jMHzUU526gHny20tpEdcncgl1fmGnjqGYaFFH5eJ/0SSjmo6czG5WnMciKx abdDC+PHgbJHK5ZEQUPVctFTdnFaFvpj7u9Mf5C5Ai28RN6y5c= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Mon, 8 Jan 2018 09:37:23 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/misc/genwqe/card_utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index 8f2e6442d88b..55c389a9e7d7 100644 --- a/drivers/misc/genwqe/card_utils.c +++ b/drivers/misc/genwqe/card_utils.c @@ -593,7 +593,6 @@ int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m, void *uaddr, sizeof(struct page *) + sizeof(dma_addr_t), GFP_KERNEL); if (!m->page_list) { - dev_err(&pci_dev->dev, "err: alloc page_list failed\n"); m->nr_pages = 0; m->u_vaddr = NULL; m->size = 0; /* mark unused and not added */ -- 2.15.1