staging: rts5208: Rewrite redundant if statement to improve code style
authorTobias Nießen <tobias.niessen@stud.uni-hannover.de>
Wed, 26 Jun 2019 14:28:56 +0000 (16:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 07:05:21 +0000 (09:05 +0200)
commit34a49d9edf3af971867e3876de7dc9935d467f67
tree54b2064cb0680a88580455a1b827fe422834338d
parent7ff9f78ea683229264d813949ae21b24234267c6
staging: rts5208: Rewrite redundant if statement to improve code style

This commit uses the fact that

    if (a) {
            if (b) {
                    ...
            }
    }

can instead be written as

    if (a && b) {
            ...
    }

without any change in behavior, allowing to decrease the indentation
of the contained code block and thus reducing the average line length.

Signed-off-by: Tobias Nießen <tobias.niessen@stud.uni-hannover.de>
Signed-off-by: Sabrina Gaube <sabrina-gaube@web.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/sd.c