mvpp2: refactor BM pool init percpu code
authorMatteo Croce <mcroce@microsoft.com>
Thu, 2 Jul 2020 14:12:40 +0000 (16:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jul 2020 21:46:24 +0000 (14:46 -0700)
commit136bcd8425b84ce81bbcf0f4cbefa6735b122d03
tree4e2afaa28a4ec8d36e901cf672a6efc9b2ff71ff
parentb0d754ef35041f921a1a03319b570fdfac9a027e
mvpp2: refactor BM pool init percpu code

In mvpp2_swf_bm_pool_init_percpu(), a reference to a struct
mvpp2_bm_pool is obtained traversing multiple structs, when a
local variable already points to the same object.

Fix it and, while at it, give the variable a meaningful name.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c