gpu: nvgpu: fix MISRA 2.2 no dead code

MISRA rule 2.2 doesn't allow unused functions and assignments in code.
The reason is presence of unused functions or variable assignments may
indicate error in program's logic. This patch removes an unused function
following rule 2.2.

Jira NVGPU-858

Change-Id: I80b4ae3486038de1a9b1c3afc3b4f17f18cc9efd
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2111616
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2019-05-03 14:52:49 -07:00
committed by mobile promotions
parent 67b3cb8a54
commit 38bc7e3b7e

View File

@@ -368,13 +368,6 @@ void nvgpu_clk_arb_clear_global_alarm(struct gk20a *g, u32 alarm)
(long int)current_mask, (long int)new_mask)));
}
static inline struct nvgpu_clk_arb_worker *
nvgpu_clk_arb_worker_from_worker(struct nvgpu_worker *worker)
{
return (struct nvgpu_clk_arb_worker *)
((uintptr_t)worker - offsetof(struct nvgpu_clk_arb_worker, worker));
};
/*
* Process one scheduled work item.
*/