Skip to content
Commit 9f16778c authored by Tony Luck's avatar Tony Luck Committed by Jonathan Cameron
Browse files

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: default avatarTony Luck <tony.luck@intel.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 5993f3a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment