summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'utilities')
-rwxr-xr-xutilities/checkpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 243a43027..b45a255ce 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -480,7 +480,7 @@ if __name__ == '__main__':
if n_patches:
status = 0
- for i in range(n_patches, 0, -1):
+ for i in reversed(range(0, n_patches)):
revision = 'HEAD~%d' % i
f = os.popen('git format-patch -1 --stdout %s' % revision, 'r')
patch = f.read()