diff mbox

[1/1] hidraw: Replace Confusing += Operator with =

Message ID 1296098718-6964-1-git-send-email-alan@signal11.us (mailing list archive)
State Accepted
Commit cf28a673666fba5770b40fb084584391f451c07d
Headers show

Commit Message

Alan Ott Jan. 27, 2011, 3:25 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c
index 468e87b..66fbcba 100644
--- a/drivers/hid/hidraw.c
+++ b/drivers/hid/hidraw.c
@@ -91,7 +91,7 @@  static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count,
 			ret = -EFAULT;
 			goto out;
 		}
-		ret += len;
+		ret = len;
 
 		kfree(list->buffer[list->tail].value);
 		list->tail = (list->tail + 1) & (HIDRAW_BUFFER_SIZE - 1);