1
0
Fork 0

pnfs: Use true and false for boolean values

Return statements in functions returning bool should use true or false
instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
hifive-unleashed-5.1
Gustavo A. R. Silva 2018-08-01 19:55:51 -05:00 committed by Anna Schumaker
parent 2230ca0d28
commit 10db5b7a2f
1 changed files with 1 additions and 1 deletions

View File

@ -1628,7 +1628,7 @@ pnfs_lseg_range_match(const struct pnfs_layout_range *ls_range,
(range->iomode != ls_range->iomode &&
strict_iomode) ||
!pnfs_lseg_range_intersecting(ls_range, range))
return 0;
return false;
/* range1 covers only the first byte in the range */
range1 = *range;