Commit fdc368e9 authored by Su Hui's avatar Su Hui Committed by Chuck Lever
Browse files

nfsd: Change the type of ek_fsidtype from int to u8 and use kstrtou8



The valid values for ek_fsidtype are actually 0-7 so it's better to
change the type to u8. Also using kstrtou8() to relpace simple_strtoul(),
kstrtou8() is safer and more suitable for u8.

Suggested-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent f26c9305
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment