diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-13 15:30:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 16:17:29 -0700 |
commit | 15ab600ce34a51e1cbcd3446dd21b67473e1f79e (patch) | |
tree | 30b27fc10b177f4fbad5a55d42f26a177e722970 /drivers/staging/speakup | |
parent | 6eb178cebb5b380377033a972a9803adb5a58ede (diff) | |
download | linux-15ab600ce34a51e1cbcd3446dd21b67473e1f79e.tar.gz linux-15ab600ce34a51e1cbcd3446dd21b67473e1f79e.tar.bz2 linux-15ab600ce34a51e1cbcd3446dd21b67473e1f79e.zip |
Staging: speakup: Fix sparse warning in varhandlers.c
'cp' is a pointer. Fix the incorrect comparison with integer to
avoid the below warning:
drivers/staging/speakup/varhandlers.c:283:19: warning:
Using plain integer as NULL pointer
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup')
-rw-r--r-- | drivers/staging/speakup/varhandlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/varhandlers.c b/drivers/staging/speakup/varhandlers.c index 2e8603d7b14a..9aa2a78cd71c 100644 --- a/drivers/staging/speakup/varhandlers.c +++ b/drivers/staging/speakup/varhandlers.c @@ -277,7 +277,7 @@ int spk_set_mask_bits(const char *input, const int which, const int how) spk_chartab[*cp] &= ~mask; } cp = (u_char *)input; - if (cp == 0) + if (!cp) cp = spk_punc_info[which].value; else { for ( ; *cp; cp++) { |