Staging: speakup: Return NULL instead of 0 in speakup_decpc.c
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 13 May 2013 10:00:41 +0000 (15:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:17:29 +0000 (16:17 -0700)
The function returns a pointer. Hence return NULL instead of 0.

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>
drivers/staging/speakup/speakup_decpc.c

index b50388fd4f0868d77e269d3eb409c1090702b676..ea6b72d40b317f9eb342b66c9a3c762b8f6f96cb 100644 (file)
@@ -444,7 +444,7 @@ static const char *synth_immediate(struct spk_synth *synth, const char *buf)
                        return buf;
                buf++;
        }
-       return 0;
+       return NULL;
 }
 
 static int synth_probe(struct spk_synth *synth)