[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e6b19a4a-566b-d1a0-1847-ed1167e118b6@users.sourceforge.net>
Date: Sun, 26 Nov 2017 18:41:32 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-omap@...r.kernel.org, linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Tomi Valkeinen <tomi.valkeinen@...com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 1/3] video: omap: Delete an error message for a failed memory
allocation in omapfb_do_probe()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 26 Nov 2017 18:09:15 +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@...rs.sourceforge.net>
---
drivers/video/fbdev/omap/omapfb_main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 3479a47a3082..b0d91524bf6c 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -1647,8 +1647,6 @@ static int omapfb_do_probe(struct platform_device *pdev,
fbdev = kzalloc(sizeof(struct omapfb_device), GFP_KERNEL);
if (fbdev == NULL) {
- dev_err(&pdev->dev,
- "unable to allocate memory for device info\n");
r = -ENOMEM;
goto cleanup;
}
--
2.15.0
Powered by blists - more mailing lists