Commit a677a783 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by J. Bruce Fields

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent c2cdc2ab
...@@ -451,7 +451,7 @@ static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp) ...@@ -451,7 +451,7 @@ static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp)
switch (fsid_type) { switch (fsid_type) {
case FSID_DEV: case FSID_DEV:
if (!old_valid_dev(exp_sb(exp)->s_dev)) if (!old_valid_dev(exp_sb(exp)->s_dev))
return 0; return false;
/* FALL THROUGH */ /* FALL THROUGH */
case FSID_MAJOR_MINOR: case FSID_MAJOR_MINOR:
case FSID_ENCODE_DEV: case FSID_ENCODE_DEV:
...@@ -461,13 +461,13 @@ static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp) ...@@ -461,13 +461,13 @@ static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp)
case FSID_UUID8: case FSID_UUID8:
case FSID_UUID16: case FSID_UUID16:
if (!is_root_export(exp)) if (!is_root_export(exp))
return 0; return false;
/* fall through */ /* fall through */
case FSID_UUID4_INUM: case FSID_UUID4_INUM:
case FSID_UUID16_INUM: case FSID_UUID16_INUM:
return exp->ex_uuid != NULL; return exp->ex_uuid != NULL;
} }
return 1; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment