Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: 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: J. Bruce Fields <bfields@redhat.com>

authored by

Gustavo A. R. Silva and committed by
J. Bruce Fields
a677a783 c2cdc2ab

+3 -3
+3 -3
fs/nfsd/nfsfh.c
··· 451 451 switch (fsid_type) { 452 452 case FSID_DEV: 453 453 if (!old_valid_dev(exp_sb(exp)->s_dev)) 454 - return 0; 454 + return false; 455 455 /* FALL THROUGH */ 456 456 case FSID_MAJOR_MINOR: 457 457 case FSID_ENCODE_DEV: ··· 461 461 case FSID_UUID8: 462 462 case FSID_UUID16: 463 463 if (!is_root_export(exp)) 464 - return 0; 464 + return false; 465 465 /* fall through */ 466 466 case FSID_UUID4_INUM: 467 467 case FSID_UUID16_INUM: 468 468 return exp->ex_uuid != NULL; 469 469 } 470 - return 1; 470 + return true; 471 471 } 472 472 473 473