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)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Jun 2021 18:20:38 +0000 (20:20 +0200)
commita51b2fb94b04ab71e53a71b9fad03fa826941254
tree4f54b7347051278360e098f567600f09a8485d32
parentc43ce4740249b485846093f8a66220b25fb86290
gpio: zynq: Check return value of pm_runtime_get_sync

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>
drivers/gpio/gpio-zynq.c