]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: combine 'else if' and 'else' into single branch
authorYueHaibing <yuehaibing@huawei.com>
Fri, 3 Aug 2018 08:48:56 +0000 (16:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2018 16:42:00 +0000 (09:42 -0700)
commit405dbd0e9ffdd1d09d33dfeb05db5c50eafbd108
tree38dc7d50f525c1906a5906d976ea3d88a44059d4
parent2308494ca972d7392d4165394db0cb16e78ad34c
bnxt_en: combine 'else if' and 'else' into single branch

The else-if branch and else branch set mac_ok to true similarly,
so combine the two into single else branch.

Also add comments to explain the two conditions, which
from Michael Chan and Vasundhara Volam.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c