git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5993f3a
)
staging:iio:adt7316 Fix some 'interesting' string operations
author
Luck, Tony
<tony.luck@intel.com>
Thu, 4 Apr 2013 21:37:00 +0000
(22:37 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 9 Apr 2013 17:29:02 +0000
(18:29 +0100)
Calling memcmp() to check the value of the first byte in a string is overkill.
Just use buf[0] == '1' or buf[0] != '1' as appropriate.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
No differences found