Fix invalid check on FM_TYPE_PAUSE_PACING_TIME on fmComparePortAttributes
This commit is contained in:
parent
89b0a0ea96
commit
160148d755
|
@ -46,5 +46,5 @@ fm_status fm10000PTIReceive(fm_int sw,
|
|||
fm_int length,
|
||||
fm_int * dataLength);
|
||||
|
||||
#endif /* FM_FM10000_GENERIC_PTI_H */
|
||||
#endif /* __FM_FM10000_GENERIC_PTI_H */
|
||||
|
||||
|
|
|
@ -15923,7 +15923,7 @@ fm_status fm10000GetPortEyeDiagram(fm_int sw,
|
|||
err = FM_ERR_INVALID_PORT_LANE;
|
||||
}
|
||||
/* Validate logical port ID */
|
||||
/* This validation is forced for the time being */
|
||||
/* TODO: This validation is forced for the time being */
|
||||
else if (ValidatePort(sw, port) == FALSE && 0)
|
||||
{
|
||||
err = FM_ERR_INVALID_PORT;
|
||||
|
|
|
@ -2186,8 +2186,8 @@ fm_int fmComparePortAttributes(fm_int attrType, void *attr1, void *attr2)
|
|||
case FM_TYPE_PAUSE_PACING_TIME:
|
||||
retVal = ( (( (fm_pausePacingTime *)attr1)->pauseClass ==
|
||||
( (fm_pausePacingTime *)attr2)->pauseClass) &&
|
||||
(( (fm_pausePacingTime *)attr1)->pauseClass ==
|
||||
( (fm_pausePacingTime *)attr2)->pauseClass) ) ?
|
||||
(( (fm_pausePacingTime *)attr1)->timeNs ==
|
||||
( (fm_pausePacingTime *)attr2)->timeNs) ) ?
|
||||
0 : 1;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue