mlx5: Remove call to ida_pre_get
authorMatthew Wilcox <mawilcox@microsoft.com>
Thu, 15 Mar 2018 02:57:24 +0000 (19:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Mar 2018 14:46:01 +0000 (10:46 -0400)
commitc846d8da5640a6c61d57e2c14a1a6d74b9c643b0
tree48191056a75392c137b0c1061f0d9e55a58a108e
parentc314c7ba40389876a3a4534cdef4adde56174a09
mlx5: Remove call to ida_pre_get

The mlx5 driver calls ida_pre_get() in a loop for no readily apparent
reason.  The driver uses ida_simple_get() which will call ida_pre_get()
by itself and there's no need to use ida_pre_get() unless using
ida_get_new().

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c