linux/drivers/staging/media
Aishwarya Pant 309167b966 media: staging: atomisp: cleanup out of memory messages
Logging of explicit out of memory messages is redundant since memory allocation
failures produce a backtrace.

Done with the help of the following cocci script:

@@
expression ex, ret;
statement s;
constant char[] c;
constant err;
identifier f, l;
@@

ex =
\(kmalloc\|kmalloc_array\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\|devm_kzalloc\)(...)
... when != ex

if (
(
!ex
|
unlikely(!ex)
)
)
- {
- f(..., c, ...);
(
return ex;
|
return;
|
return err;
|
goto l;
)
- }
else s

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-10-31 06:06:43 -04:00
..
atomisp media: staging: atomisp: cleanup out of memory messages 2017-10-31 06:06:43 -04:00
bcm2048 media: Staging: media: radio-bcm2048: make video_device const 2017-08-27 08:47:37 -04:00
cxd2099 media: staging/cxd2099: Add module parameter for buffer mode 2017-08-27 06:42:31 -04:00
davinci_vpfe media: staging: media: davinci_vpfe: constify vb2_ops structures 2017-08-20 08:03:30 -04:00
imx media: imx: Fix VDIC CSI1 selection 2017-10-27 14:14:43 +02:00
lirc [media] media: lirc_dev: merge struct irctl into struct lirc_dev 2017-10-04 14:53:07 -03:00
omap4iss media: staging: omap4iss: make v4l2_file_operations const 2017-08-27 08:46:23 -04:00
Kconfig [media] media: Add i.MX media core driver 2017-06-20 07:30:38 -03:00
Makefile [media] media: Add i.MX media core driver 2017-06-20 07:30:38 -03:00