mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Compare spppq to NULL instead of using spppq as a boolean.
This commit is contained in:
parent
5a19f6d9d4
commit
57848b8f65
1 changed files with 2 additions and 2 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue