ifpoll: Don't bark, if status poll handler does not exist
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 12 Oct 2012 02:52:37 +0000 (10:52 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 12 Oct 2012 02:52:37 +0000 (10:52 +0800)
Since no status poll handler is allowed, don't do meaningless error logging

sys/net/if_poll.c

index 05981ec..548561f 100644 (file)
@@ -611,7 +611,6 @@ stpoll_deregister(struct ifnet *ifp)
                        break;
        }
        if (i == st_ctx->poll_handlers) {
-               kprintf("stpoll_deregister: ifp not found!!!\n");
                error = ENOENT;
        } else {
                st_ctx->poll_handlers--;