diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-10-09 16:30:18 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-16 12:18:52 -0200 |
commit | e44e9489a7bda01bb26986fdf5b17559d26c26af (patch) | |
tree | 6688a46c0cef6c6f20b0d40dde5e6deb37214dc5 /drivers/media/platform/blackfin | |
parent | 73446966b9ab9da118bb905bdbb5e8d3a1826b25 (diff) | |
download | blackbird-obmc-linux-e44e9489a7bda01bb26986fdf5b17559d26c26af.tar.gz blackbird-obmc-linux-e44e9489a7bda01bb26986fdf5b17559d26c26af.zip |
[media] blackfin-capture: Delete an error message for a failed memory allocation
The script "checkpatch.pl" pointed information out like the following.
WARNING: Possible unnecessary 'out of memory' message
Thus remove such a statement here.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/blackfin')
-rw-r--r-- | drivers/media/platform/blackfin/bfin_capture.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index c5e10439e8b9..2e6edc09b58f 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c @@ -802,10 +802,8 @@ static int bcap_probe(struct platform_device *pdev) } bcap_dev = kzalloc(sizeof(*bcap_dev), GFP_KERNEL); - if (!bcap_dev) { - v4l2_err(pdev->dev.driver, "Unable to alloc bcap_dev\n"); + if (!bcap_dev) return -ENOMEM; - } bcap_dev->cfg = config; |