Skip to content

Commit

Permalink
[EQL]: sparse warning fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Aug 27, 2007
1 parent c3609d5 commit 37d2e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/eql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37d2e73

Please sign in to comment.