about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorPierre Lalet <pierre@droids-corp.org>2015-02-18 20:55:26 +0100
committerPierre Lalet <pierre@droids-corp.org>2015-02-18 20:55:26 +0100
commit736befb2b6fab02e601eae392a9969ac91f2caa3 (patch)
tree66b6208ca4ca21ac8efb3606930ffb664ecddc69 /miasm2/arch/x86/arch.py
parent5b3589b4735024e96becb5dbd8d25de4416f7cfb (diff)
parentdf19d375b8552406de77290c95ff41ef366b76c6 (diff)
downloadmiasm-736befb2b6fab02e601eae392a9969ac91f2caa3.tar.gz
miasm-736befb2b6fab02e601eae392a9969ac91f2caa3.zip
Merge pull request #76 from commial/pylinting
Pylinting (thanks for this work!)
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 2e858756..c5535153 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -2564,15 +2564,15 @@ class bs_cl1(bsi, m_arg):
 
 
 def sib_cond(cls, mode, v):
-        if admode_prefix((mode, v["opmode"], v["admode"])) == 16:
-            return None
-        if v['mod'] == 0b11:
-            return None
-        elif v['rm'] == 0b100:
-            return cls.ll
-        else:
-            return None
-        return v['rm'] == 0b100
+    if admode_prefix((mode, v["opmode"], v["admode"])) == 16:
+        return None
+    if v['mod'] == 0b11:
+        return None
+    elif v['rm'] == 0b100:
+        return cls.ll
+    else:
+        return None
+    return v['rm'] == 0b100
 
 
 class bs_cond_scale(bs_cond):