diff options
author | Oliver Graute <oliver.graute@gmail.com> | 2017-12-19 20:58:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-21 18:17:05 +0100 |
commit | dd1114693bcc7d3690442ef9d85c29dbd785f79b (patch) | |
tree | 448b6650e09d495a4ca05cf226b6973b31f8fb8e /drivers | |
parent | 93ddf0b211a0a0367d01c9587169c16ed77b4b98 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 89c03601ec1f..1d7c50c1ac23 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -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); |