From: Luck, Tony Date: Thu, 4 Apr 2013 21:37:00 +0000 (+0100) Subject: staging:iio:adt7316 Fix some 'interesting' string operations X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~232^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f16778c5d0a32f264812a9bf1602b71613720b8;p=pandora-kernel.git staging:iio:adt7316 Fix some 'interesting' string operations 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 Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed