Fix invalid check on FM_TYPE_PAUSE_PACING_TIME on fmComparePortAttributes

This commit is contained in:
DataHoarder 2021-10-28 08:37:30 +02:00
parent 89b0a0ea96
commit 160148d755
3 changed files with 4 additions and 4 deletions

View file

@ -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 */

View file

@ -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;

View file

@ -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;