From: Stephen Hemminger Date: Sat, 25 Aug 2007 05:37:49 +0000 (-0700) Subject: [EQL]: sparse warning fix X-Git-Tag: MMI-PSA29.97-13-9~40637^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37d2e7316007b4583e5783c608efdd3b2284b74d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [EQL]: sparse warning fix More noodlin on long flights, patch bin. Sparse warning fix for eql. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- 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);