From patchwork Thu Jan 27 03:25:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Ott X-Patchwork-Id: 510331 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0R3PNUX019086 for ; Thu, 27 Jan 2011 03:25:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752672Ab1A0DZW (ORCPT ); Wed, 26 Jan 2011 22:25:22 -0500 Received: from core.signal11.us ([64.251.29.136]:58533 "EHLO core.signal11.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751910Ab1A0DZV (ORCPT ); Wed, 26 Jan 2011 22:25:21 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by core.signal11.us (Postfix) with SMTP id AE6131CCABB3 for ; Wed, 26 Jan 2011 22:25:20 -0500 (EST) Received: from localhost.localdomain (c-68-59-135-75.hsd1.fl.comcast.net [68.59.135.75]) by core.signal11.us (Postfix) with ESMTP id 7FD5D1CCABB0; Wed, 26 Jan 2011 22:25:19 -0500 (EST) From: Alan Ott To: Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Alan Ott Subject: [PATCH 1/1] hidraw: Replace Confusing += Operator with = Date: Wed, 26 Jan 2011 22:25:18 -0500 Message-Id: <1296098718-6964-1-git-send-email-alan@signal11.us> X-Mailer: git-send-email 1.7.0.4 X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Jan 26 22:25:20 2011 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4d40e5a0281781220514688 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 27 Jan 2011 03:25:23 +0000 (UTC) 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);