diff options
| author | Tobin C. Harding <me@tobin.cc> | 2017-04-10 06:15:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-11 17:05:50 +0300 |
| commit | dc59ef2af26de72289b5ac576298445c676f2c5b (patch) | |
| tree | 6583e4990660a614852ce7ae84aae0579f609bd1 /scripts/const_structs.checkpatch | |
| parent | 2ab6fd596317c89b96f0cfd8811f12dd047bbd9e (diff) | |
| download | linux-dc59ef2af26de72289b5ac576298445c676f2c5b.tar.xz | |
staging: ks7010: fix multi-way decision
Multi-way decision contains two anomalies.
Firstly, a local variable is defined to be the inverse truth variable
of a struct member. This local variable is used as the conditional to
the multi-way decision. This is unnecessary, the same logic can be
expressed using the struct member directly.
Secondly, there are four branches in the multi-way decision, two of
which can never be executed. This is dead code.
Remove unnecessary local variable. Remove two branches of multi-way
decision statement that can never be executed.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
