Staging: vt6656: Combined nested conditions
authorSimon Schuster <linux@rationality.eu>
Sat, 4 Jan 2014 15:25:15 +0000 (16:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 01:17:58 +0000 (17:17 -0800)
commit8f284d79fc11f8d8c603f32d4fa341c379abdfa8
tree25ac6ba351cfd18a865ccd9e8b4034eea1c9b9c9
parentb7fce6aec117378cbd2a9db27b394a6128bd3e98
Staging: vt6656: Combined nested conditions

This patch reduces the level of indentation in bssdb.c of the vt6656
driver by transforming nested conditions to a series of logical
conjunctions. E.g.

if (cond1) {
        if (cond2) {
                block();
        }
}

is transformed to

if (cond1 && cond2) {
        block();
}

Signed-off-by: Sebastian Rachuj <sebastian.rachuj@studium.uni-erlangen.de>
Signed-off-by: Simon Schuster <linux@rationality.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/bssdb.c