mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 17:11:03 +00:00
staging: pi433: pi433_write fixed the return value
The pi433_write function should return the number of processed bytes Reported-by: Marcin Ciupak <marcin.s.ciupak@gmail.com> Signed-off-by: Oliver Graute <oliver.graute@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
93ddf0b211
commit
dd1114693b
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ pi433_write(struct file *filp, const char __user *buf,
|
|||
wake_up_interruptible(&device->tx_wait_queue);
|
||||
dev_dbg(device->dev, "write: generated new msg with %d bytes.", copied);
|
||||
|
||||
return 0;
|
||||
return copied;
|
||||
|
||||
abort:
|
||||
dev_dbg(device->dev, "write to fifo failed: 0x%x", retval);
|
||||
|
|
Loading…
Reference in a new issue