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:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 16:24:45 +0300
commit22d89cc86c35d510f305a5e2bb651627487d26e9 (patch)
tree1bf97b042c314aedf8c70290a7e09de7f2ba59cd /scripts/gdb/linux/utils.py
parentad93cc9f15a78a7cc6532db2a0cd0dd8d4311de6 (diff)
downloadlinux-22d89cc86c35d510f305a5e2bb651627487d26e9.tar.xz
staging: rtl8712: Invert comparison to reduce indentation
Check the condition: "pdata->length < 32" first, to be able to return immediately in case of error and then continue with the rest of the function without one extra indentation level. 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