linux-stable/drivers/staging/speakup
Saurabh Sengar d86b4a71ca Staging: speakup: varhandlers: cleanup of function spk_get_punc_var
This patch does the following:
* changed the complicated if statements to simple case statements
* in case of E_DEFAULT, no need to return error as ERESTART,
because this is the user asked for. Hence function should return success.
* ret variable is 0 always, hence removed it.
* removed one ternary operator, as it was always returning the status value only,
and hence removed the status variable too

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-01-28 22:40:31 -08:00
..
buffers.c staging: speakup: (coding style) Rewrite comparisons to NULL 2016-01-28 22:40:31 -08:00
DefaultKeyAssignments
devsynth.c staging: speakup: (coding style) Add braces around all arms of if-statement 2016-01-28 22:40:31 -08:00
fakekey.c staging: speakup: fix speakup-r regression 2015-10-04 19:57:20 +01:00
i18n.c Staging: speakup: Use ARRAY_SIZE macro 2015-10-08 10:50:27 +01:00
i18n.h
Kconfig
keyhelp.c staging: speakup: (coding style) Add spaces around operands (checkpatch checks) 2016-01-28 22:40:31 -08:00
kobjects.c Staging: speakup: kobjects.c: Remove explicit NULL comparison 2015-09-12 18:25:00 -07:00
main.c
Makefile
selection.c locking/atomics, cmpxchg: Privatize the inclusion of asm/cmpxchg.h 2015-09-13 10:35:46 +02:00
serialio.c Staging: speakup: serialio.c: Remove explicit NULL comparison 2015-09-12 18:25:00 -07:00
serialio.h
speakup.h
speakup_acnt.h
speakup_acntpc.c
speakup_acntsa.c
speakup_apollo.c
speakup_audptr.c staging: speakup: speakup_audptr: Remove useless intialisation 2015-10-16 22:56:23 -07:00
speakup_bns.c
speakup_decext.c
speakup_decpc.c
speakup_dectlk.c
speakup_dtlk.c
speakup_dtlk.h
speakup_dummy.c
speakup_keypc.c
speakup_ltlk.c
speakup_soft.c staging: speakup: Fix multi-line comment style 2015-10-16 22:56:23 -07:00
speakup_spkout.c
speakup_txprt.c
speakupmap.h
speakupmap.map
spk_priv.h staging: speakup: Fix multi-line comment style 2015-10-16 22:56:23 -07:00
spk_priv_keyinfo.h staging: speakup: Fix multi-line comment style 2015-10-16 22:56:23 -07:00
spk_types.h
spkguide.txt
synth.c
thread.c
TODO
varhandlers.c Staging: speakup: varhandlers: cleanup of function spk_get_punc_var 2016-01-28 22:40:31 -08:00