On Thu, Nov 19, 2015 at 01:20:09PM +0100, Christian Colic wrote:
> Fix checkpatch check.
> Remove an unnecessary space after a cast.
> 
> Signed-off-by: Christian Colic <colic.christ...@gmail.com>
> ---
>  drivers/staging/speakup/devsynth.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/speakup/devsynth.c 
> b/drivers/staging/speakup/devsynth.c
> index d1ffdf4..1561399 100644
> --- a/drivers/staging/speakup/devsynth.c
> +++ b/drivers/staging/speakup/devsynth.c
> @@ -34,7 +34,7 @@ static ssize_t speakup_file_write(struct file *fp, const 
> char __user *buffer,
>               synth_write(buf, bytes);
>               spin_unlock_irqrestore(&speakup_info.spinlock, flags);
>       }
> -     return (ssize_t) nbytes;
> +     return (ssize_t)bytes;

Changing from nbytes to bytes totally breaks the code.  The cast is not
necessary, just remove it.

regards,
dan carpenter

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to