summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>2017-03-22 01:53:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 16:24:45 +0300
commitad93cc9f15a78a7cc6532db2a0cd0dd8d4311de6 (patch)
tree68d9a4f7dc91d84bed1b71ed359d0679b45aff9e /scripts/gdb/linux/utils.py
parent09e1aa1aaa797a40d1f9657007e7c0a90eec96cf (diff)
downloadlinux-ad93cc9f15a78a7cc6532db2a0cd0dd8d4311de6.tar.xz
staging: rtl8712: Restructure code for clarity
Invert if statements to be able to return immediately in case of error, and to avoid additional else branch. Improve layout of function since there is more horizontal space now. This was found using the following Coccinelle script: @disable neg_if@ expression e,E; statement S; @@ *if (e) S else { return -E; } @disable neg_if@ expression e,E; statement S; identifier l; @@ *if (e) S else { rc = -E; goto l; } Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions