public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: SF Markus Elfring <elfring@users.sourceforge.net>
To: kernel-janitors@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Frank Haverkamp <haver@linux.vnet.ibm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	"Jörg-Stephan Vogt" <jsvogt@de.ibm.com>,
	"Michael Jung" <MIJUNG@de.ibm.com>,
	"Michael Rüttger" <michael@ibmra.de>
Subject: [PATCH 1/3] GenWQE: Delete an error message for a failed memory allocation in genwqe_user_vmap()
Date: Mon, 8 Jan 2018 10:41:10 +0100	[thread overview]
Message-ID: <b77e137c-6fb2-e5fa-3e18-9d611dd4f0c1@users.sourceforge.net> (raw)
In-Reply-To: <e1b73b1a-ae0a-b76b-33d7-4dc5af8e39b5@users.sourceforge.net>

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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

  reply	other threads:[~2018-01-08  9:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08  9:40 [PATCH 0/3] GenWQE: Adjustments for some function implementations SF Markus Elfring
2018-01-08  9:41 ` SF Markus Elfring [this message]
2018-01-08 12:45   ` [PATCH 1/3] GenWQE: Delete an error message for a failed memory allocation in genwqe_user_vmap() haver
2018-01-08 13:23     ` Dan Carpenter
2018-01-08 13:40       ` haver
2018-01-08 13:24     ` SF Markus Elfring
2018-01-08 13:42       ` haver
2018-01-08  9:42 ` [PATCH 2/3] GenWQE: Fix a typo in two comments SF Markus Elfring
2018-01-08 12:47   ` haver
2018-01-08  9:43 ` [PATCH 3/3] GenWQE: Adjust 12 checks for null pointers SF Markus Elfring
2018-01-08 12:50   ` haver
2018-01-08 13:50     ` [3/3] " SF Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b77e137c-6fb2-e5fa-3e18-9d611dd4f0c1@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=MIJUNG@de.ibm.com \
    --cc=arnd@arndb.de \
    --cc=gpiccoli@linux.vnet.ibm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=haver@linux.vnet.ibm.com \
    --cc=jsvogt@de.ibm.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael@ibmra.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox