summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2016-09-06 15:34:38 -0400
committerThomas Markwalder <tmark@isc.org>2016-09-06 15:34:38 -0400
commit9564b4f04c996c95d1359630a8b900857b266ef3 (patch)
treecf8115fdc296407a5ae6930298493da876164c98 /omapip
parent2b5c8201ffdfa2678d7a047524ec109f75493cae (diff)
downloadisc-dhcp-9564b4f04c996c95d1359630a8b900857b266ef3.tar.gz
[master] Removed extraneous expression from omapi socket callback
Merges in rt42834.
Diffstat (limited to 'omapip')
-rw-r--r--omapip/dispatch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/omapip/dispatch.c b/omapip/dispatch.c
index be3918b6..d42d7440 100644
--- a/omapip/dispatch.c
+++ b/omapip/dispatch.c
@@ -134,12 +134,11 @@ omapi_iscsock_cb(isc_task_t *task,
* walk through the io states list, if our object is on there
* service it. if not ignore it.
*/
- for (obj = omapi_io_states.next;
- (obj != NULL) && (obj->next != NULL);
- obj = obj->next) {
+ for (obj = omapi_io_states.next; obj != NULL; obj = obj->next) {
if (obj == cbarg)
break;
}
+
if (obj == NULL) {
return(0);
}