]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: gdm724x: Remove unnecessary print statements
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Fri, 22 Mar 2019 12:40:10 +0000 (18:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Mar 2019 14:16:28 +0000 (15:16 +0100)
commit40cb1b714c6bfa5782a4817f8e156086e460262f
treeafad2aba86a77b7c6aac5f17016b6b5dc7ed1530
parentbddb0ffe7ee211e14aa5b95999a25c78d54cad4a
Staging: gdm724x: Remove unnecessary print statements

Remove print statements that provide information about error messages
when memory allocation is failed.
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>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_lte.c