lkml.org 
[lkml]   [2016]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectxfs_icache.c:1298]: (style) Redundant condition
Hello there,

linux-4.7/fs/xfs/xfs_icache.c:1298]: (style) Redundant condition:
eofb. '!eofb || (eofb && eofb.eof_scan_owner!=0)' is equivalent to
'!eofb || eofb.eof_scan_owner!=0'

Source code is

ASSERT(!eofb || (eofb && eofb->eof_scan_owner != 0));

Maybe better code

ASSERT(!eofb || (eofb->eof_scan_owner != 0));

Regards

David Binderman

\
 
 \ /
  Last update: 2016-07-25 17:41    [W:0.055 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site