]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9304b3603a74180a5b4b09b4eda0cc7a246d86e5
tree48191056a75392c137b0c1061f0d9e55a58a108e
parenta88dfd4b2521dfcc57fe12895e5fd20214f0891f
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