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:
parent
b0162025eb
commit
a370ad07b7
1 changed files with 2 additions and 5 deletions
|
@ -272,12 +272,9 @@ USHORT IpVersion6(struct bcm_mini_adapter *Adapter, PVOID pcIpHeader,
|
||||||
INT iMatchedSFQueueIndex = 0;
|
INT iMatchedSFQueueIndex = 0;
|
||||||
|
|
||||||
iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID);
|
iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID);
|
||||||
if (iMatchedSFQueueIndex >= NO_OF_QUEUES) {
|
if ((iMatchedSFQueueIndex >= NO_OF_QUEUES) ||
|
||||||
|
(Adapter->PackInfo[iMatchedSFQueueIndex].bActive == false))
|
||||||
bClassificationSucceed = false;
|
bClassificationSucceed = false;
|
||||||
} else {
|
|
||||||
if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == false)
|
|
||||||
bClassificationSucceed = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return bClassificationSucceed;
|
return bClassificationSucceed;
|
||||||
|
|
Loading…
Add table
Reference in a new issue