mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
[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>
This commit is contained in:
parent
c3609d510f
commit
37d2e73160
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ static int __eql_insert_slave(slave_queue_t *queue, slave_t *slave)
|
||||||
slave_t *duplicate_slave = NULL;
|
slave_t *duplicate_slave = NULL;
|
||||||
|
|
||||||
duplicate_slave = __eql_find_slave_dev(queue, slave->dev);
|
duplicate_slave = __eql_find_slave_dev(queue, slave->dev);
|
||||||
if (duplicate_slave != 0)
|
if (duplicate_slave)
|
||||||
eql_kill_one_slave(queue, duplicate_slave);
|
eql_kill_one_slave(queue, duplicate_slave);
|
||||||
|
|
||||||
list_add(&slave->list, &queue->all_slaves);
|
list_add(&slave->list, &queue->all_slaves);
|
||||||
|
|
Loading…
Reference in a new issue