aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-01-30 12:08:23 +1100
committerChuck Lever <chuck.lever@oracle.com>2024-03-01 09:12:18 -0500
commitc6540026dfe68b2cc6b6891404f8efa7c40e53e9 (patch)
tree38909d67173b42b635ffeb01db616e6aa55ae3b0 /tools/perf/scripts/python/export-to-sqlite.py
parent779457285a45cb95d625d407becd6417cb3d1c96 (diff)
nfsd: don't call functions with side-effecting inside WARN_ON()
Code like: WARN_ON(foo()) looks like an assertion and might not be expected to have any side effects. When testing if a function with side-effects fails a construct like if (foo()) WARN_ON(1); makes the intent more obvious. nfsd has several WARN_ON calls where the test has side effects, so it would be good to change them. These cases don't really need the WARN_ON. They have never failed in 8 years of usage so let's just remove the WARN_ON wrapper. Suggested-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions