[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c949fbd6-0a01-d6e7-d6f9-d55dbf5dce5e@users.sourceforge.net>
Date: Sun, 24 Sep 2017 12:22:55 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-media@...r.kernel.org, Hans Verkuil <hverkuil@...all.nl>,
Jan Kara <jack@...e.cz>, Lorenzo Stoakes <lstoakes@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Michal Hocko <mhocko@...e.com>,
Muralidharan Karicheri <mkaricheri@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 1/6] [media] omap_vout: Delete an error message for a failed
memory allocation in omap_vout_create_video_devices()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 24 Sep 2017 10:08:22 +0200
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/media/platform/omap/omap_vout.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c
index 4d29860d27b4..aebc1e628ac5 100644
--- a/drivers/media/platform/omap/omap_vout.c
+++ b/drivers/media/platform/omap/omap_vout.c
@@ -1948,7 +1948,5 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
- if (!vout) {
- dev_err(&pdev->dev, ": could not allocate memory\n");
+ if (!vout)
return -ENOMEM;
- }
vout->vid = k;
vid_dev->vouts[k] = vout;
--
2.14.1
Powered by blists - more mailing lists