diff mbox series

[07/17] rt-tests: hwlatdetect: Remove unnessary parens after return

Message ID 20211111204207.10167-7-jkacur@redhat.com
State New
Headers show
Series [01/17] rt-tests:hwlatdetect: Remove useless object in class declaration | expand

Commit Message

John Kacur Nov. 11, 2021, 8:41 p.m. UTC
Remove unnecessary parens after return

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/hwlatdetect/hwlatdetect.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index 5a66280fb01c..2fabbb55b242 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -174,14 +174,14 @@  class Kmod:
             debug("not loading %s (already loaded)" % self.name)
             return True
         cmd = ['/sbin/modprobe', self.name]
-        return (subprocess.call(cmd) == 0)
+        return subprocess.call(cmd) == 0
 
     def unload(self):
         if self.preloaded or self.builtin:
             debug("Not unloading %s" % self.name)
             return True
         cmd = ['/sbin/modprobe', '-r', self.name]
-        return (subprocess.call(cmd) == 0)
+        return subprocess.call(cmd) == 0
 
 #
 # base class for detection modules
@@ -494,11 +494,11 @@  def microseconds(str):
     if str.isdigit():
         return int(str)
     elif str[-2:] == 'ms':
-        return (int(str[0:-2]) * 1000)
+        return int(str[0:-2]) * 1000
     elif str[-2:] == 'us':
         return int(str[0:-2])
     elif str[-1:] == 's':
-        return (int(str[0:-1]) * 1000 * 1000)
+        return int(str[0:-1]) * 1000 * 1000
     else:
         raise RuntimeError("invalid input for microseconds: '%s'" % str)