diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-10-07 17:02:21 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-11-18 00:43:43 +0300 |
commit | 6089dd0d731028531fb1148be9fd33274ff90da4 (patch) | |
tree | e23db00cc4e512db34c7dd09568436de449b8ea6 /fs/nfs/pnfs.c | |
parent | 3944369db701f075092357b511fd9f5755771585 (diff) | |
download | linux-6089dd0d731028531fb1148be9fd33274ff90da4.tar.xz |
NFS: Fix bool initialization/comparison
Bool initializations should use true and false. Bool tests don't need
comparisons.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 4aab53baf664..ec30dacf1a24 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1513,7 +1513,7 @@ pnfs_lseg_range_match(const struct pnfs_layout_range *ls_range, if ((range->iomode == IOMODE_RW && ls_range->iomode != IOMODE_RW) || (range->iomode != ls_range->iomode && - strict_iomode == true) || + strict_iomode) || !pnfs_lseg_range_intersecting(ls_range, range)) return 0; |