summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefano Manni <stefano.manni@gmail.com>2017-11-16 22:45:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 16:07:15 +0300
commit57f8965af417f97ed3f8e3d5c62c3e812e1b19e0 (patch)
tree893dd59b027cbbea5b1fed8a6d7e246bd9f82c35 /drivers
parent8d05bce217de06cba6f2600ed54a69304def9ab5 (diff)
downloadlinux-57f8965af417f97ed3f8e3d5c62c3e812e1b19e0.tar.xz
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')
-rw-r--r--drivers/staging/pi433/pi433_if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 2a205c6173dc..6f9ab3742bac 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;