]> asedeno.scripts.mit.edu Git - linux.git/commit
Staging: rtl8723au: Remove print statements and debug messages
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 28 Feb 2016 17:25:29 +0000 (22:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commitc15cc49810fe2547cbf3ac58f6939f0f69a6c1c5
tree7e66582e51d8dff9ce217a1904d9d2b7ba2a9429
parentb32f6fdc9b82296c22d0bd0896f11643fb3e0cd5
Staging: rtl8723au: Remove print statements and debug messages

The  memory allocation functions generates a call stack containing
all the context information on failure, so print statements and debug
messages can be removed on failure of these functions. Also remove
unwanted {} around if block after removal of these messages.
Done using coccinelle:

@@
expression e;
@@

e=\(kmalloc\|kmalloc\|kmalloc_array\|alloc_netdev\|kzalloc\|
   devm_kzalloc\|devm_ioremap\)(...);
...
if(!e){
- \(DBG_8723A\|printk\|pr_err\|CERROR\|DBG_88E\)(...);
...when any
}

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_ops_linux.c
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c