mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Fix following Coverity Defect: nvgpu_init.c : Unused value The ret variable was being reassigned the error code from nvgpu_cic_mon_deinit(g) without taking into account the previous ret value. We need to propagate whether there is an error (the last known error is returned) or not using ret, the temp_ret variable helps in verifying this. Similar coding style followed in the entire function. CID 10127863 Bug 3460991 Signed-off-by: Jinesh Parakh <jparakh@nvidia.com> Change-Id: I732ba5269ebbbe68f113e53229df40ae49ccc13c Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2697104 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>