linux/drivers/staging/speakup
Meghana Madhyastha 08710da3cf Staging: speakup: Remove print following unsuccessful kmalloc
Remove print statement following unsuccessful kmalloc when there
is not enough memory. Kmalloc and variants normally produce a
backtrace in such a case. Hence, a print statement is not necessary.

Found using the following Coccinelle semantic patch:

@@
identifier i;
@@

i = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|
devm_ioremap\|usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\|
kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
   kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...));
(
if (i == NULL)
{
-\(DBG_8723A\|printk\|pr_err\|CERROR\|DBG_88E\)(...);
...when any
}
|
if (!i)
{
-\(DBG_8723A\|printk\|pr_err\|CERROR\|DBG_88E\)(...);
...when any
}
)

@@
identifier i;
@@
(
- if (i == NULL) {
+ if (i == NULL)
       return ...;
- }
|
- if (!i) {
+ if (!i)
       return ...;
- }
)

Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 11:50:40 +02:00
..
buffers.c speakup: extend synth buffer to 16bit unicode characters 2017-03-09 17:28:20 +01:00
DefaultKeyAssignments
devsynth.c
fakekey.c staging: speakup: Remove the explicit NULL comparison 2017-03-27 14:00:41 +02:00
i18n.c staging: speakup: i18n.c: Refactor conditionals in spk_msg_set 2017-03-12 15:27:45 +01:00
i18n.h
Kconfig
keyhelp.c staging: speakup: Clean up if conditions 2017-03-06 09:39:54 +01:00
kobjects.c staging: speakup: Removed Unnecessary parentheses. 2017-03-23 14:20:41 +01:00
main.c staging/speakup: fix checkpatch.pl warning in speak_char() 2017-09-17 16:35:25 +02:00
Makefile staging: speakup: add tty-based comms functions 2017-05-16 14:05:42 +02:00
selection.c staging: speakup: Match alignment with open parenthesis. 2017-03-23 14:20:41 +01:00
serialio.c staging: speakup: alignment match open parens 2017-06-06 16:17:31 +02:00
serialio.h staging: speakup: add send_xchar, tiocmset and input functionality for tty 2017-05-16 14:19:41 +02:00
speakup_acnt.h
speakup_acntpc.c Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
speakup_acntsa.c Staging: speakup: Replace symbolic permission 2017-09-17 16:35:26 +02:00
speakup_apollo.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_audptr.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_bns.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_decext.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_decpc.c staging: speakup: fix unnecessary long line 2017-05-15 12:44:20 +02:00
speakup_dectlk.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_dtlk.c staging: speakup: make input functionality swappable 2017-05-15 12:31:43 +02:00
speakup_dtlk.h drivers/staging/speakup: Align block comments at * 2017-05-15 12:44:20 +02:00
speakup_dummy.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_keypc.c Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
speakup_ltlk.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_soft.c staging: speakup: make input functionality swappable 2017-05-15 12:31:43 +02:00
speakup_spkout.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup_txprt.c staging: speakup: make ttyio synths use device name 2017-06-27 09:12:33 +02:00
speakup.h staging: speakup: spaces preferred around operator 2017-03-23 14:20:41 +01:00
speakupmap.h
speakupmap.map
spk_priv_keyinfo.h staging: speakup: spk_priv_keyinfo.h Space around operator 2016-11-23 10:05:39 +01:00
spk_priv.h staging: speakup: add functions to register and unregister ldisc 2017-07-18 09:03:21 +02:00
spk_ttyio.c Staging: speakup: Remove print following unsuccessful kmalloc 2017-09-18 11:50:40 +02:00
spk_types.h staging: speakup: check and convert dev name or ser to dev_t 2017-06-27 09:12:33 +02:00
spkguide.txt
synth.c staging: speakup: fix synth caching when synth init fails 2017-06-25 16:31:22 +02:00
thread.c staging: speakup: thread.c align on parenthesis 2016-11-21 11:05:29 +01:00
TODO staging: speakup: TODO Correct email 2016-11-21 11:05:29 +01:00
varhandlers.c staging: speakup: fixes braces {} should be used on all arms of this statement 2017-03-23 14:20:41 +01:00