drm/nouveau/pci: Move an expression into a function call parameter in nvkm_pcie_set_l...
authorMarkus Elfring <Markus.Elfring@web.de>
Sun, 16 Apr 2023 06:45:31 +0000 (08:45 +0200)
committerKarol Herbst <kherbst@redhat.com>
Mon, 17 Apr 2023 17:08:04 +0000 (19:08 +0200)
commit8a89e1323d7dc90fa551cf2167ab838013641788
tree75c9fff002afe1351bf1819c7ca116329b6570e6
parent488c1ce6a8f3d46e20440b2e240e096a20259fcc
drm/nouveau/pci: Move an expression into a function call parameter in nvkm_pcie_set_link()

The variable “pbus” was read only once in the implementation of
the function “nvkm_pcie_set_link”.
Thus move the usage of an expression into a parameter for a function call.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/04e2c1f5-26c7-9a23-5861-3d8757556cdd@web.de
drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c