Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753202AbeADOEg (ORCPT + 1 other); Thu, 4 Jan 2018 09:04:36 -0500 Received: from mout.web.de ([217.72.192.78]:58199 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753081AbeADOEe (ORCPT ); Thu, 4 Jan 2018 09:04:34 -0500 To: linux-mtd@lists.infradead.org, Boris Brezillon , Brian Norris , Cyrille Pitchen , David Woodhouse , Marek Vasut , Richard Weinberger From: SF Markus Elfring Subject: [PATCH] mtd/maps/vmu-flash: Delete an error message for a failed memory allocation in maple_vmu_read_block() Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: Date: Thu, 4 Jan 2018 15:03:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:7mxSBN0/1QrEyn2arIIkikXDJfa+gtMMn7nvCRXgUbtbnLD0F5/ T+1w8DGKL3SoSq3T0Btl/2m6HuXF2rOmFjXAqOXGVopKiQ58S9vYqL7gCjTT2t1C16C183k CqZmKej2DTORsk1ywK4bhZ1mDILkhlIY45vWm7lu/LIRgf1XdAi30YEwMBKBlZRYNW4So2E y1fWxj7HN8QRbXqHMI7YQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:rM5Pwprj1sM=:jP50CyBv9Gb9eIEl7tceta P6MZ28ZSZgUY73ptniwZpOkNKZ9GrP+C7VqwIuUa4/rPnMr0LlWQIfLfS+FeL1fJa3JXSRIDy o4OOmdLydkNdyA12TCMyGibu8PUX3J+LnKbG9wSujiuZpRDuQovPIXPw0lHxtgOYqY5ELmexl lO5zHgkd7sMlpV2meB7gOOeuKXR+AQ5gMChHxFACADeOAneJe1ZJDpUeqtx0U3z+UK0s9ujKf H0vLMABZ/3MCCSjgYF6S9fuyCgiY7QjBM6dBJGMgR/9wydj0qyURjTneAH+O50nJTsoxsMoUX Hz5HYX51lkMypcUbfqcJBfHF81uyP8Psebow+wfc0n/tK2q8NT/Uu00nxS+ONnc4MzS4Ljtm+ jWtpc47CaW6pIBh/88n+B1dFF19DbKga2Vrkm22mkV49dU/PONsy4SYvl40SwlYFbOP93so8r LN1owkVnQjB/b6NuGcd3Y+UDWLYf2bHL7x3i+RNncBvjwQ1tdh1WttCnnCnan5DTuXNPMntpg uBZprRfEzRWfqiUWL7Xjl2mtEy/lB7K4Yt4tQ+LiG/fZdq2gilDbm7UVvFs08U2OWcWYJh6nk p8BCQs08T+94ResvU0JwiqNHW97XnKr62F8HXVzNcvP/LD7kzB1X8BLP7gLWUlApgm2QP5SwG Wit7h/Vvt94gs5J2ytGC0WGpve7WLcWveCgGRi0N5VlPMTXWs0MYXQtx3bRmaC3WcnekKFIMo iCU1FV0Jd6Eu5oGgGEWg2Hip3Nuaupk/+Z9YGD3p74AXLXwDomg8b9ALqdbtPO5DnKRLW8tP9 x4YG9pvlpmH1GFqMK9ZvTle1aKcWELgFqFwTA58wEjsmgCuEcE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Thu, 4 Jan 2018 14:54:08 +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/mtd/maps/vmu-flash.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c index 6b223cfe92b7..a76a5ff402e1 100644 --- a/drivers/mtd/maps/vmu-flash.c +++ b/drivers/mtd/maps/vmu-flash.c @@ -130,9 +130,6 @@ static int maple_vmu_read_block(unsigned int num, unsigned char *buf, if (!pcache->buffer) { pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); if (!pcache->buffer) { - dev_err(&mdev->dev, "VMU at (%d, %d) - read fails due" - " to lack of memory\n", mdev->port, - mdev->unit); error = -ENOMEM; goto outB; } -- 2.15.1