lkml.org 
[lkml]   [2013]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging/adt7316 Fix some 'interesting' string operations
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@intel.com>

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

thanks,

greg k-h


\
 
 \ /
  Last update: 2013-04-06 00:42    [W:0.075 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site