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: I8c9ad786a741b78293d0ebc4e1c33d4d0fc8f9b4 Signed-off-by: Amurthyreddy <amurthyreddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1921260 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> 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
745e720089
commit
c94643155e
@@ -22,5 +22,5 @@
|
||||
#ifndef NVGPU_LPWR_RPPG_H
|
||||
#define NVGPU_LPWR_RPPG_H
|
||||
|
||||
u32 init_rppg(struct gk20a *g);
|
||||
int init_rppg(struct gk20a *g);
|
||||
#endif /* NVGPU_LPWR_RPPG_H */
|
||||
|
||||
Reference in New Issue
Block a user