Improve variable names
authorJeremy Kerr <jk@ozlabs.org>
Sun, 19 Nov 2006 11:20:56 +0000 (22:20 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:38 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 965d8cac2c2c5eee17bae01748c7b173f71e0347..4962e57f2bfd7ed8aeb54b1e3e911a738398dab6 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -255,13 +255,13 @@ def main():
                usage(sys.argv[0])
                return 1
 
                usage(sys.argv[0])
                return 1
 
-       a = args.pop(0)
-       if not regs.has_key(a):
-               print "No such register '%s'. Valid regs are:" % a
+       reg_id = args.pop(0)
+       if not regs.has_key(reg_id):
+               print "No such register '%s'. Valid regs are:" % reg_id
                list_regs(regs)
                return 1
 
                list_regs(regs)
                return 1
 
-       r = regs[a]
+       r = regs[reg_id]
        print "decoding as %s" % r.name
 
        if args:
        print "decoding as %s" % r.name
 
        if args: