summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>2017-03-22 01:52:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 16:24:45 +0300
commit09e1aa1aaa797a40d1f9657007e7c0a90eec96cf (patch)
tree5187f1801b752d59f4c714ca7dc877fc6ff7d37e /include/linux
parente6d9379507d77c08fb9f91c8430c3f87ceb38d29 (diff)
downloadlinux-09e1aa1aaa797a40d1f9657007e7c0a90eec96cf.tar.xz
staging: rtl8712: Invert the test on check_fwstate() to reduce indentation
Negate if condition to be able to return immediately in case of error, and then continue with the rest of the function without 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 'include/linux')
0 files changed, 0 insertions, 0 deletions