diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-08-24 22:37:49 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-08-26 18:35:38 -0700 |
commit | 37d2e7316007b4583e5783c608efdd3b2284b74d (patch) | |
tree | edd2f7ee91b473a08527c48f075aca1d1b3c5f9d /drivers/net/eql.c | |
parent | c3609d510f844100669965db8a9ff10ba029bb4a (diff) | |
download | linux-37d2e7316007b4583e5783c608efdd3b2284b74d.tar.gz linux-37d2e7316007b4583e5783c608efdd3b2284b74d.tar.bz2 linux-37d2e7316007b4583e5783c608efdd3b2284b74d.zip |
[EQL]: sparse warning fix
More noodlin on long flights, patch bin. Sparse warning fix for eql.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/eql.c')
-rw-r--r-- | drivers/net/eql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/eql.c b/drivers/net/eql.c index a93700e5661a..102218c4a907 100644 --- a/drivers/net/eql.c +++ b/drivers/net/eql.c @@ -391,7 +391,7 @@ static int __eql_insert_slave(slave_queue_t *queue, slave_t *slave) slave_t *duplicate_slave = NULL; duplicate_slave = __eql_find_slave_dev(queue, slave->dev); - if (duplicate_slave != 0) + if (duplicate_slave) eql_kill_one_slave(queue, duplicate_slave); list_add(&slave->list, &queue->all_slaves); |