[PATCH 1/1] Staging: speakup: Fix return value in synth.c

Samuel Thibault samuel.thibault at ens-lyon.org
Mon May 13 23:29:41 UTC 2013


Sachin Kamat, le Mon 13 May 2013 16:08:55 +0530, a écrit :
> The function return type is a pointer. Hence return NULL instead
> of 0.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>

Acked-by: Samuel Thibault <samuel.thibault at ens-lyon.org>

> ---
>  drivers/staging/speakup/synth.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c
> index d867dd9..bd775db 100644
> --- a/drivers/staging/speakup/synth.c
> +++ b/drivers/staging/speakup/synth.c
> @@ -145,7 +145,7 @@ const char *spk_synth_immediate(struct spk_synth *synth, const char *buff)
>  			return buff;
>  		buff++;
>  	}
> -	return 0;
> +	return NULL;
>  }
>  EXPORT_SYMBOL_GPL(spk_synth_immediate);
>  
> -- 
> 1.7.9.5
> 

-- 
Samuel
<y> muhahaha...
<y> ya un train qui part de Perrache à 14h57
<y> qui passe à Part-Dieu à 15h10
<y> si je le prend à Perrache, je suis en zone bleue
<y> si je le prends à Part-Dieu, je suis en zone blanche
<y> donc je vais le prendre à Perrache *mais* à Part-Dieu ;-)
 -+- #ens-mim - vive la SNCF -+-



More information about the devel mailing list