aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-03-20 22:44:56 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-20 15:53:50 -0600
commitaf756d5782a08cc746aa94a1237c2a596ac92af2 (patch)
tree5a148735e63e82ce2355401f771e272c39f200ca
parente984bd6d2c142ea2cc0d672c428db061f77a802c (diff)
downloadblktrace-af756d5782a08cc746aa94a1237c2a596ac92af2.tar.gz
btt_plot.py: Fix pylint: no-else-return
Unnecessary "elif" after "return" Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xbtt/btt_plot.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/btt/btt_plot.py b/btt/btt_plot.py
index 653ace7..b67caaa 100755
--- a/btt/btt_plot.py
+++ b/btt/btt_plot.py
@@ -396,12 +396,11 @@ def do_live(files):
def live_sort(a, b):
if a[0] == 'sys' and b[0] == 'sys':
return 0
- elif a[0] == 'sys' or a[2][0] < b[2][0]:
+ if a[0] == 'sys' or a[2][0] < b[2][0]:
return -1
- elif b[0] == 'sys' or a[2][0] > b[2][0]:
+ if b[0] == 'sys' or a[2][0] > b[2][0]:
return 1
- else:
- return 0
+ return 0
#----------------------------------------------------------------------
def turn_off_ticks(ax):