arch/mips/src/pic32m[x|z]/pic32m[x|z]-ethernet.c: Fix a comparison in a debug assertion. Should be <= vs <. Noted by Anonymous in Bitbucket Isue 134.

This commit is contained in:
Gregory Nutt 2018-11-21 12:35:43 -06:00
parent 49ed9cac86
commit bd5d079c02
2 changed files with 2 additions and 2 deletions

View File

@ -1021,7 +1021,7 @@ static int pic32mx_transmit(struct pic32mx_driver_s *priv)
*/
DEBUGASSERT(priv->pd_dev.d_buf != NULL &&
priv->pd_dev.d_len < CONFIG_NET_ETH_PKTSIZE);
priv->pd_dev.d_len <= CONFIG_NET_ETH_PKTSIZE);
/* Increment statistics and dump the packet (if so configured) */

View File

@ -1048,7 +1048,7 @@ static int pic32mz_transmit(struct pic32mz_driver_s *priv)
*/
DEBUGASSERT(priv->pd_dev.d_buf != NULL &&
priv->pd_dev.d_len < CONFIG_NET_ETH_PKTSIZE);
priv->pd_dev.d_len <= CONFIG_NET_ETH_PKTSIZE);
/* Increment statistics and dump the packet (if so configured) */