linux/drivers/staging/speakup
simran singhal 4be4c37929 staging: speakup: Clean up tests if NULL returned on failure
Some functions like kmalloc/kzalloc return NULL on failure.
When NULL represents failure, !x is commonly used.

This was done using Coccinelle:
@@
expression *e;
identifier l1;
@@

e = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\)(...);
...
- e == NULL
+ !e

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-09 14:27:13 +01:00
..
buffers.c
DefaultKeyAssignments
devsynth.c Staging: speakup: Remove space after cast 2016-08-15 19:14:53 +02:00
fakekey.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
i18n.c staging:speakup:i18n.c: Align open paranthesis 2017-03-09 14:27:13 +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: Replace BUG_ON() with WARN_ON(). 2017-03-06 09:17:05 +01:00
main.c staging: speakup: Clean up tests if NULL returned on failure 2017-03-09 14:27:13 +01:00
Makefile
selection.c staging: speakup: Added spaces around arithmetic operators. 2017-03-06 09:17:02 +01:00
serialio.c staging: speakup: Added spaces around arithmetic operators. 2017-03-06 09:17:02 +01:00
serialio.h
speakup_acnt.h
speakup_acntpc.c staging: speakup: Added spaces around arithmetic operators. 2017-03-06 09:17:02 +01:00
speakup_acntsa.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_apollo.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_audptr.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_bns.c Staging: speakup: speakup_bns: fix comment 2017-01-31 09:30:58 +01:00
speakup_decext.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_decpc.c staging: speakup: Fixed coding style errors and aligned indents 2017-03-09 14:27:13 +01:00
speakup_dectlk.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_dtlk.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_dtlk.h staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_dummy.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_keypc.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_ltlk.c staging: rtl8192e: Aligning the * on each line in block comments 2017-02-12 13:46:57 +01:00
speakup_soft.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
speakup_spkout.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup_txprt.c Staging: speakup - syle fix permissions to octal 2017-01-31 09:30:58 +01:00
speakup.h Staging: speakup: speakup.h - remove unused define 2017-02-09 13:10:20 +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 __printf format/arg verification, fix fallout 2017-03-09 14:25:57 +01:00
spk_types.h staging: speakup: spk_types.h Align parenthesis 2016-11-23 10:05:39 +01:00
spkguide.txt
synth.c staging: speakup: (coding style) Limit line to 80 chars 2017-03-06 09:17:02 +01: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: varhandlers.c Align parenthesis 2016-11-21 11:05:29 +01:00