aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-02-03 13:10:40 +0000
committerJakub Kicinski <[email protected]>2021-02-04 18:37:47 -0800
commit8f8a42ff003aaa3c1424923154c9a92f3bd4c634 (patch)
tree28e9ef1034af8450158b85c4c5b4a1ba122f6f5d /tools/perf/scripts/python/stackcollapse.py
parentd6adfd37e7eb9ec65e6fd95790f718dda85dec2f (diff)
net: hns3: remove redundant null check of an array
The null check of filp->f_path.dentry->d_iname is redundant because it is an array of DNAME_INLINE_LEN chars and cannot be a null. Fix this by removing the null check. Addresses-Coverity: ("Array compared against 0") Fixes: 04987ca1b9b6 ("net: hns3: add debugfs support for tm nodes, priority and qset info") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions