diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-03-12 19:01:44 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-30 17:54:08 -0400 |
commit | 12cd49a733f88c2d6ad41a5c411d1076f26956ed (patch) | |
tree | c967b22b86c44165f1c61fbabb6a037dc30ec803 /drivers/gpu/nvgpu/lpwr/rppg.c | |
parent | 3d90f0aad537d92b42bc8250252f521b649077f8 (diff) |
gpu: nvgpu: Cleanup more set but unused variables
This time they were largely located in the various common directories.
JIRA NVGPU-525
Change-Id: I3a6d523b060a0c6761b227267890298c6d2fb19f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1673820
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@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>
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr/rppg.c')
-rw-r--r-- | drivers/gpu/nvgpu/lpwr/rppg.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/rppg.c b/drivers/gpu/nvgpu/lpwr/rppg.c index b1c72a4a..6fc86b2b 100644 --- a/drivers/gpu/nvgpu/lpwr/rppg.c +++ b/drivers/gpu/nvgpu/lpwr/rppg.c | |||
@@ -29,18 +29,15 @@ | |||
29 | static void pmu_handle_rppg_init_msg(struct gk20a *g, struct pmu_msg *msg, | 29 | static void pmu_handle_rppg_init_msg(struct gk20a *g, struct pmu_msg *msg, |
30 | void *param, u32 handle, u32 status) | 30 | void *param, u32 handle, u32 status) |
31 | { | 31 | { |
32 | |||
33 | u8 ctrlId = NV_PMU_RPPG_CTRL_ID_MAX; | ||
34 | u32 *success = param; | 32 | u32 *success = param; |
35 | 33 | ||
36 | if (status == 0) { | 34 | if (status == 0) { |
37 | switch (msg->msg.pg.rppg_msg.cmn.msg_id) { | 35 | switch (msg->msg.pg.rppg_msg.cmn.msg_id) { |
38 | case NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK: | 36 | case NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK: |
39 | ctrlId = msg->msg.pg.rppg_msg.init_ctrl_ack.ctrl_id; | ||
40 | *success = 1; | 37 | *success = 1; |
41 | nvgpu_pmu_dbg(g, "RPPG is acknowledged from PMU %x", | 38 | nvgpu_pmu_dbg(g, "RPPG is acknowledged from PMU %x", |
42 | msg->msg.pg.msg_type); | 39 | msg->msg.pg.msg_type); |
43 | break; | 40 | break; |
44 | } | 41 | } |
45 | } | 42 | } |
46 | 43 | ||
@@ -160,5 +157,3 @@ u32 init_rppg(struct gk20a *g) | |||
160 | 157 | ||
161 | return status; | 158 | return status; |
162 | } | 159 | } |
163 | |||
164 | |||