USHORT usNextHeaderOffset = 0 ;
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
- if ((NULL == ppucPayload) || (*pusPayloadLength == 0) ||
+ if ((ppucPayload == NULL) || (*pusPayloadLength == 0) ||
(*bParseDone)) {
*bParseDone = TRUE;
return NULL;
pstIpv6Header->ucNextHeader);
do {
- if (0 == pstClassifierRule->ucDirection) {
+ if (pstClassifierRule->ucDirection == 0) {
/*
* cannot be processed for classification.
* it is a down link connection
}
} while (0);
- if (TRUE == bClassificationSucceed) {
+ if (bClassificationSucceed == TRUE) {
INT iMatchedSFQueueIndex = 0;
iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID);
if (iMatchedSFQueueIndex >= NO_OF_QUEUES) {
bClassificationSucceed = FALSE;
} else {
- if (FALSE == Adapter->PackInfo[iMatchedSFQueueIndex].bActive) {
+ if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == FALSE) {
bClassificationSucceed = FALSE;
}
}
UINT uiCountIPSrcAddresses = (UINT)pstClassifierRule->ucIPSourceAddressLength;
- if (0 == uiCountIPSrcAddresses)
+ if (uiCountIPSrcAddresses == 0)
return TRUE;
UINT uiCountIPDestinationAddresses = (UINT)pstClassifierRule->ucIPDestinationAddressLength;
- if (0 == uiCountIPDestinationAddresses)
+ if (uiCountIPDestinationAddresses == 0)
return TRUE;