Commit bfb506ec authored by Stephen Hemminger's avatar Stephen Hemminger

[WAN]: Incorrect comparison for register_netdev in cosa.c

parent 8992505e
......@@ -615,7 +615,7 @@ static void sppp_channel_init(struct channel_data *chan)
d->get_stats = cosa_net_stats;
d->tx_timeout = cosa_sppp_timeout;
d->watchdog_timeo = TX_TIMEOUT;
if (register_netdev(d) == -1) {
if (register_netdev(d)) {
printk(KERN_WARNING "%s: register_netdev failed.\n", d->name);
sppp_detach(chan->pppdev.dev);
free_netdev(chan->pppdev.dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment