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:
parent
49ed9cac86
commit
bd5d079c02
@ -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) */
|
||||
|
||||
|
@ -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) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user