Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934664AbeAHQQ5 (ORCPT + 1 other); Mon, 8 Jan 2018 11:16:57 -0500 Received: from mout.web.de ([212.227.15.14]:51634 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932349AbeAHQQz (ORCPT ); Mon, 8 Jan 2018 11:16:55 -0500 Subject: [PATCH 2/4] misc/ioc4: Delete an error message for a failed memory allocation in ioc4_probe() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Andrew Morton , Arnd Bergmann , Brent Casavant , Greg Kroah-Hartman , Jeremy Higdon , Pat Gefre Cc: LKML References: <4fb26753-2ae3-7c17-7777-03c6923a1d4b@users.sourceforge.net> Message-ID: Date: Mon, 8 Jan 2018 17:16:48 +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: <4fb26753-2ae3-7c17-7777-03c6923a1d4b@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:oohwnghYl+xk7uhc8Ou/BKpI2OFcQRT9Fr753xOKgymbQm5w/E5 rM4S0DEHbbKDA07M0DVlLQj4ZSd0cztvlPwcvGc1wY0WfxOHsaR0KjD9idxCMip6uTGxD9N qVA1kDBwkJ1XlKaP8F5z5+D6bdck9JflCzQqRyH4E1lnqfd5NG9amA+/xq2s9qx0QD1LStH /ju1HhzApdB/MqyLhR2Lw== X-UI-Out-Filterresults: notjunk:1;V01:K0:MlMqA/DOraU=:YmSHnPo8Tn2Pg0/0jf0pXn 4IJTBQQPgHJ0XHPSzVqfTs+p6u8FgKdGo/jnLIptj8PesQ7Xclw7Fj8jy/Q4faGBdZ3+BteIg 3m3b6hSysv2vftu4SPa3cYVbqjVxaSwP7y7pIutSuoF1kroF1T2NX2bdGR/5vM5RogEm1DaBB BNbs53xGG+hBUyLks23hbvsudv8FnjFYxxx8UnKxGuEj7N/pIW9iaEiYtS1UV1TmsI0/u0OAc Geg5mt3bcHzZqjBOHWlQ6i2j346L0Pnq87EWylVzEQtgBywQSWB2DtJUrcx4zb30XQavmeT6V d5hMUmWpf2sKzySP9KEvmwxNnAx7E9Lo1K1/Npjygp7hcWK32N3nlkD1eriskOMS2RevzfXOC XPGyRljyfQlz0n62XjJJoLrIPwGKFFLyNe7JnBki8cA1WmTT9syBMNXcmnPwy0PIkR9IOB4q4 1/oTFEId6rUetw/32DNcgYRJXV3ASQbL6gXgqxnwmyh7wX+ufoRPCAL9BjTzyp2HpFqmvLsjD wSRoH/tjPwKyrpHk4RJSV1ubzxF16ycoBJdvXSRKL+q35oTf3KU37cRzFFv4Y9QZGq0q6eeuF Q0MbiFfA+rKzXBHbvrE53Lgzi5bUQdTKGfp6dkhbliXJRFgLHfPs8Lx/X0COWJoXCrOkQjzu6 PCB23WOjtCZF9/RGVwQ7BsVQanG0ea/PiSDg2LKH4Oq4zgRCqA1mV5m0Ic7zvuZknlJ2AKGhR upK5pcebtjhhylH81homWcF1zqQfskLqArcCLZlc4CX4Dfpqs4exMA7/DXcwnLJwGJHxbqSnB +na5KyeY8DE65a6zqWvarTca0hXnzpBcSe5xSsAyyKKi3AcHXA= 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 16:14:49 +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/ioc4.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index 63a64104d2da..5bd422498fff 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c @@ -297,9 +297,6 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) /* Set up per-IOC4 data */ idd = kmalloc(sizeof(struct ioc4_driver_data), GFP_KERNEL); if (!idd) { - printk(KERN_WARNING - "%s: Failed to allocate IOC4 data for pci_dev %s.\n", - __func__, pci_name(pdev)); ret = -ENOMEM; goto out_idd; } -- 2.15.1