Re: [PATCH] staging: speakup: (coding sytle) remove unnecessary space after a cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.christian@xxxxxxxxx>
> ---
>  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
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux