Re: [PATCH] staging/adt7316 Fix some 'interesting' string operations

From: Greg Kroah-Hartman
Date: Fri Apr 05 2013 - 18:03:12 EST


On Thu, Apr 04, 2013 at 02:37:24PM -0700, Luck, Tony wrote:
> 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@xxxxxxxxx>

I'll let Jonathan take this through his tree which eventually makes it
to mine.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/