aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLv Ruyi <[email protected]>2022-04-18 10:57:55 +0000
committerMartin K. Petersen <[email protected]>2022-04-26 09:02:44 -0400
commitc5acd61dbb32b6bda0f3a354108f2b8dcb788985 (patch)
tree6b357e6a5571de4d2f35a476d95c96a1594a9b17 /tools/perf/scripts/python/netdev-times.py
parent1497e95e22c3be382217da290106ab4f865dc1fa (diff)
scsi: megaraid: Fix error check return value of register_chrdev()
If major equals 0, register_chrdev() returns an error code when it fails. This function dynamically allocates a major and returns its number on success, so we should use "< 0" to check it instead of "!". Link: https://lore.kernel.org/r/[email protected] Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions