Compare spppq to NULL instead of using spppq as a boolean.

This commit is contained in:
Robert Watson 2004-03-14 01:32:44 +00:00
parent 5a19f6d9d4
commit 57848b8f65

View File

@ -961,7 +961,7 @@ sppp_attach(struct ifnet *ifp)
struct sppp *sp = (struct sppp*) ifp;
/* Initialize keepalive handler. */
if (! spppq)
if (spppq != NULL)
TIMEOUT(sppp_keepalive, 0, hz * 10, keepalive_ch);
/* Insert new entry into the keepalive list. */
@ -1020,7 +1020,7 @@ sppp_detach(struct ifnet *ifp)
}
/* Stop keepalive handler. */
if (! spppq)
if (spppq != NULL)
UNTIMEOUT(sppp_keepalive, 0, keepalive_ch);
for (i = 0; i < IDX_COUNT; i++)