mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 19:15:03 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b0162025eb
commit
a370ad07b7
@@ -272,12 +272,9 @@ USHORT IpVersion6(struct bcm_mini_adapter *Adapter, PVOID pcIpHeader,
|
||||
INT iMatchedSFQueueIndex = 0;
|
||||
|
||||
iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID);
|
||||
if (iMatchedSFQueueIndex >= NO_OF_QUEUES) {
|
||||
if ((iMatchedSFQueueIndex >= NO_OF_QUEUES) ||
|
||||
(Adapter->PackInfo[iMatchedSFQueueIndex].bActive == false))
|
||||
bClassificationSucceed = false;
|
||||
} else {
|
||||
if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == false)
|
||||
bClassificationSucceed = false;
|
||||
}
|
||||
}
|
||||
|
||||
return bClassificationSucceed;
|
||||
|
||||
Reference in New Issue
Block a user