mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: MISRA 14.4 err/ret/status as boolean
MISRA rule 14.4 doesn't allow the usage of integer types as booleans in the controlling expression of an if statement or an iteration statement. Fix violations where the integer variables err, ret, status are used as booleans in the controlling expression of if and loop statements. JIRA NVGPU-1019 Change-Id: I9e18ffc961d485225732c34d3ca561e84d182d07 Signed-off-by: Amurthyreddy <amurthyreddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1921370 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
30aeb71693
commit
a39c48e3e2
@@ -71,7 +71,7 @@ struct voltage_device_pwm_entry {
|
||||
};
|
||||
/* PWM end */
|
||||
|
||||
u32 volt_dev_sw_setup(struct gk20a *g);
|
||||
int volt_dev_sw_setup(struct gk20a *g);
|
||||
int volt_dev_pmu_setup(struct gk20a *g);
|
||||
|
||||
#endif /* NVGPU_VOLT_DEV_H */
|
||||
|
||||
Reference in New Issue
Block a user