diff options
author | cognet <cognet@FreeBSD.org> | 2003-04-14 14:44:36 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2003-04-14 14:44:36 +0000 |
commit | 64f4176c9e22be167623f8ce09e094ec29b04e34 (patch) | |
tree | d0c94af84c1680c1231722a130c1a4792e474fbe /sys | |
parent | 57c77ee3ed080d13311e8f98ed653bf45cafea82 (diff) | |
download | FreeBSD-src-64f4176c9e22be167623f8ce09e094ec29b04e34.zip FreeBSD-src-64f4176c9e22be167623f8ce09e094ec29b04e34.tar.gz |
Use while (*controlp != NULL) instead of do ... while (*control != NULL)
There are valid cases where *controlp will be NULL at this point.
Discussed with: dwmalone
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 6b7eea7..7c13722 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -931,9 +931,8 @@ dontblock: } if (controlp) { orig_resid = 0; - do + while (*controlp != NULL) controlp = &(*controlp)->m_next; - while (*controlp != NULL); } } if (m) { |