Skip to contentSkip to conversation

staging: pi433: fixed signedness of 4th argument to kfifo_from_user

PATCH New Stefano Manni 1 participant 1 message Nov 16, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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>

---
 drivers/staging/pi433/pi433_if.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/pi433/pi433_if.c +2 -1
index 2a205c6..6f9ab37 100644
@@ -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;
Signature · 1 line
2.5.5