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:NeilBrown <neil@brown.name> Signed-off-by:
Su Hui <suhui@nfschina.com> Signed-off-by:
Chuck Lever <chuck.lever@oracle.com>
Loading
Please sign in to comment