aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAnna Schumaker <anna.schumaker@oracle.com>2024-10-01 16:33:43 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2024-11-08 14:17:37 -0500
commit3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a (patch)
tree780aff70cf5397194c7d7802c85a03e21dc971fe /tools/perf/util/scripting-engines/trace-event-python.c
parentdf50b5ee0564412e4570abae7767d9baa5911f23 (diff)
downloadlinux-3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a.tar.gz
linux-3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a.tar.bz2
linux-3c91e4b7ae902bd5c05c14ff6fe74acd0bdd237a.zip
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions