]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: media: imx: mipi-csi2: Remove unnecessary error messages
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Sat, 23 Mar 2019 07:51:29 +0000 (13:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:44:53 +0000 (05:44 +0900)
commitb5fc844f674a7d6c7c253fc21f45d8ac5beccae1
tree4f4e6a07332fe2868175ac653dbf51a0cf86ebd9
parent1325c42634837bf7213cb0512bfbbe0e60882d43
Staging: media: imx: mipi-csi2: Remove unnecessary error messages

The function devm_ioremap already prints error message  when there
is no enough memory.
Remove print statements that give error messages
Issue found using coccinelle
The following semantic patch is used to solve this:

<smpl>
@@
expression x;
constant char[] C;
identifier f;
@@

x = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|
usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\)(...));

if(x==NULL)
{
...
(
-f(C,...);
|
-f(...,C);
)
...
}
</smpl>

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/imx/imx6-mipi-csi2.c