Staging: bcm: IPv6Protocol.c: Removed unnecessary if-else blocks
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 29 Jul 2014 12:48:30 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:13:24 +0000 (17:13 -0700)
commita370ad07b77f91111e29ca0304dcda5895b8f291
tree1e57ada558403847d73a3f5eb0e7886745c567ce
parentb0162025eb763278a2df8b453bd1518fe5e87b81
Staging: bcm: IPv6Protocol.c: Removed unnecessary if-else blocks

This patch simplifies

    if (a) {
        x = false;
    } else {
        if (b) {
            x = false;
        }
    }

to
    if (a || b) {
        x = false;
    }

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/IPv6Protocol.c