safe: quiet -Wtautological-compare
Code was testing that an unsigned type was >= 0. Reviewed by: markj Approved by: markj (mentor) Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
e4cf0a367e
commit
19a9c3df5e
@ -1593,9 +1593,7 @@ safe_mcopy(struct mbuf *srcm, struct mbuf *dstm, u_int offset)
|
||||
* Advance src and dst to offset.
|
||||
*/
|
||||
j = offset;
|
||||
while (j >= 0) {
|
||||
if (srcm->m_len > j)
|
||||
break;
|
||||
while (j >= srcm->m_len) {
|
||||
j -= srcm->m_len;
|
||||
srcm = srcm->m_next;
|
||||
if (srcm == NULL)
|
||||
@ -1605,9 +1603,7 @@ safe_mcopy(struct mbuf *srcm, struct mbuf *dstm, u_int offset)
|
||||
slen = srcm->m_len - j;
|
||||
|
||||
j = offset;
|
||||
while (j >= 0) {
|
||||
if (dstm->m_len > j)
|
||||
break;
|
||||
while (j >= dstm->m_len) {
|
||||
j -= dstm->m_len;
|
||||
dstm = dstm->m_next;
|
||||
if (dstm == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user