From 6ca2c12607c24d0888dcde91080cb21b28c250fb Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 20 Feb 2018 17:42:35 -0800 Subject: gpu: nvgpu: channel_gk20a.c cleanup for POSIX Remove a variable which is assigned to but never used. Add proper include () for ilog2(). JIRA NVGPU-525 Change-Id: I42f3fddad9c294dc64343082e1dbd44b19120089 Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1673816 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index e3d9b53a..8b9f02df 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "gk20a.h" #include "dbg_gpu_gk20a.h" @@ -288,7 +289,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force) struct dbg_session_gk20a *dbg_s; struct dbg_session_data *session_data, *tmp_s; struct dbg_session_channel_data *ch_data, *tmp; - bool was_tsg = false; int err; gk20a_dbg_fn(""); @@ -313,13 +313,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force) nvgpu_err(g, "failed to unbind channel %d from TSG", ch->chid); - /* - * Channel is not a part of TSG this point onwards - * So stash its status and use it whenever necessary - * e.g. while releasing gr_ctx in - * g->ops.gr.free_channel_ctx() - */ - was_tsg = true; } else { gk20a_disable_channel(ch); } -- cgit v1.2.2