]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh_sysfs: Remove double pci_dn lookup.
authorOliver O'Halloran <oohall@gmail.com>
Mon, 15 Jul 2019 08:56:11 +0000 (18:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:19 +0000 (21:31 +1100)
commitb92952fb235bb62d22d93f6d20fc29ab43df0d91
tree5b7d30bb9530a7066ee21a183b615381679070e0
parent7de21657757230d4a4de6473805706c03635b0dc
powerpc/eeh_sysfs: Remove double pci_dn lookup.

In eeh_notify_resume_show() the pci_dn for the device is looked up once in
the declaration block and then once after checking for a NULL eeh_dev.
Remove the second lookup since it's pointless.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Tested-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190715085612.8802-5-oohall@gmail.com
arch/powerpc/kernel/eeh_sysfs.c