gpio: zynq: Check return value of pm_runtime_get_sync
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Fri, 9 Apr 2021 14:08:05 +0000 (19:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:17:50 +0000 (16:17 +0200)
commita7587d3b26cac10c9a13358ed4d2fcaa4d534aeb
tree124e3339600d77e2d363f5edff4c2013ae599cfb
parentdd47d2fe06390cc0f6252aa5c4a58bd93a11d596
gpio: zynq: Check return value of pm_runtime_get_sync

[ Upstream commit a51b2fb94b04ab71e53a71b9fad03fa826941254 ]

Return value of "pm_runtime_get_sync" API was neither captured nor checked.
Fixed it by capturing the return value and then checking for any warning.

Addresses-Coverity: "check_return"
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-zynq.c