Remove unnecessary 'not' Signed-off-by: John Kacur <jkacur@xxxxxxxxxx> --- src/hwlatdetect/hwlatdetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py index 66e132b8c2a5..5a66280fb01c 100755 --- a/src/hwlatdetect/hwlatdetect.py +++ b/src/hwlatdetect/hwlatdetect.py @@ -66,7 +66,7 @@ class DebugFS: return True debug("umounting debugfs") cmd = ['/bin/umount', self.mountpoint] - self.mounted = not (subprocess.call(cmd) == 0) + self.mounted = subprocess.call(cmd) != 0 if self.mounted: raise RuntimeError("Failed to umount debugfs") return not self.mounted -- 2.31.1