summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2003-04-14 14:44:36 +0000
committercognet <cognet@FreeBSD.org>2003-04-14 14:44:36 +0000
commit64f4176c9e22be167623f8ce09e094ec29b04e34 (patch)
treed0c94af84c1680c1231722a130c1a4792e474fbe
parent57c77ee3ed080d13311e8f98ed653bf45cafea82 (diff)
downloadFreeBSD-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
-rw-r--r--sys/kern/uipc_socket.c3
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) {
OpenPOWER on IntegriCloud