HID: hidraw: Replace Confusing += Operator with =
authorAlan Ott <alan@signal11.us>
Thu, 27 Jan 2011 03:25:18 +0000 (22:25 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 31 Jan 2011 14:43:46 +0000 (15:43 +0100)
commitcf28a673666fba5770b40fb084584391f451c07d
treee067eb54ad7ea3e59adce87b483b0749bde09fa1
parent581548db3b3c0f6e25b500329eb02e3c72e7acbe
HID: hidraw: Replace Confusing += Operator with =

Setting of the return value of hidraw_read() uses the += operator when
= is more appropriate.  There is no case where ret can be anything
other than zero when the assignment is made, making = equivalent to
+= and much more clear.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c
This page took 0.023941 seconds and 5 git commands to generate.