]> git.baikalelectronics.ru Git - kernel.git/commit
net: qed: use ptr shortcuts to dedup field accessing in some parts
authorAlexander Lobakin <alobakin@marvell.com>
Mon, 6 Jul 2020 15:38:18 +0000 (18:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2020 20:18:55 +0000 (13:18 -0700)
commit18c6dc6abdc31fc028e78af70f9b7671aa213281
treee3fd278c4ad1f60f8557bf753db5f5a2182872c0
parente2215734d56008d4fef732c9f207ac0590753f30
net: qed: use ptr shortcuts to dedup field accessing in some parts

Use intermediate pointers instead of multiple dereferencing to
simplify and beautify parts of code that will be addressed in
the next commit.

Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qed/qed_roce.c
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c