diff options
author | Stefano Manni <stefano.manni@gmail.com> | 2017-11-16 20:45:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-28 14:07:15 +0100 |
commit | 57f8965af417f97ed3f8e3d5c62c3e812e1b19e0 (patch) | |
tree | 893dd59b027cbbea5b1fed8a6d7e246bd9f82c35 /drivers/staging/pi433 | |
parent | 8d05bce217de06cba6f2600ed54a69304def9ab5 (diff) | |
download | op-kernel-dev-57f8965af417f97ed3f8e3d5c62c3e812e1b19e0.zip op-kernel-dev-57f8965af417f97ed3f8e3d5c62c3e812e1b19e0.tar.gz |
staging: pi433: fixed signedness of 4th argument to kfifo_from_user
sparse warning:
incorrect type in initializer (different signedness)
expected unsigned int *__copied, got int *<noident>
Signed-off-by: Stefano Manni <stefano.manni@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 2a205c6..6f9ab37 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -716,7 +716,8 @@ pi433_write(struct file *filp, const char __user *buf, { struct pi433_instance *instance; struct pi433_device *device; - int copied, retval; + int retval; + unsigned int copied; instance = filp->private_data; device = instance->device; |