]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: firmware: Handle error case in the zynqmp_pm_feature
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Wed, 11 Oct 2023 02:56:47 +0000 (08:26 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 7 Nov 2023 12:47:08 +0000 (13:47 +0100)
commitba9bdfd959f217a96772b83468c065b48f2581f0
tree27f5145e7b2342e3c5bc63ec5099840842d37303
parentdea1c089cfee23e1dfd838e57aba050add2d3193
drivers: firmware: Handle error case in the zynqmp_pm_feature

Unhandled error coming from xilinx_pm_request() but return
value is not read back that's why getting sparse warning
as below:
warning: variable 'ret' set but not used [-Wunused-but-set-variable].
In case of error return the "ret" value.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20231011025647.17200-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/firmware/firmware-zynqmp.c