mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Fix LibC MISRA 17.7 in clk
MISRA Rule-17.7 requires the return value of all functions to be used. Fix is either to use the return value or change the function to return void. This patch contains fix for all 17.7 violations instandard C functions in clk files. JIRA NVGPU-1036 Change-Id: Ie5979d44b2b02cb9899add031989042edb28df80 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1929902 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@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
4e41a0b199
commit
f3f4f7030a
@@ -220,7 +220,7 @@ static int clk_get_freq_controller_table(struct gk20a *g,
|
||||
entry_offset = (pfreq_controller_table_ptr +
|
||||
header.header_size + (entry_idx * header.entry_size));
|
||||
|
||||
memset(&freq_controller_data, 0x0,
|
||||
(void) memset(&freq_controller_data, 0x0,
|
||||
sizeof(struct freq_controller_data_type));
|
||||
ptmp_freq_cntr = &freq_controller_data.freq_controller;
|
||||
ptmp_freq_cntr_pi = &freq_controller_data.freq_controller_pi;
|
||||
|
||||
Reference in New Issue
Block a user