lkml.org 
[lkml]   [2015]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs: sysfs: don't pass count == 0 to bin file readers
Hello, Vladimir.

On Fri, May 22, 2015 at 02:04:31AM +0300, Vladimir Zapolskiy wrote:
> But "!size" is a special case,
>
> if (!count || pos >= size)
> return 0;
>
> seems to be incorrect in case of !size ===> (pos >= size) == true.

Hmmm... Why is that wrong tho? If size is zero and pos is zero,
there's nothing to do, no?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2015-05-22 02:01    [W:0.043 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site