]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFS: Clean up find_nfs_version()
authorAnna Schumaker <anna.schumaker@oracle.com>
Tue, 1 Oct 2024 20:33:43 +0000 (16:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 8 Nov 2024 19:17:37 +0000 (14:17 -0500)
commit3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a
tree780aff70cf5397194c7d7802c85a03e21dc971fe
parentdf50b5ee0564412e4570abae7767d9baa5911f23
NFS: Clean up find_nfs_version()

It's good practice to check the return value of request_module() to see
if the module has been found. It's also a little easier to follow the
code if __find_nfs_version() doesn't attempt to convert NULL pointers
into -EPROTONOSUPPORT.

Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/client.c