From a445a678bcf480bde01ab784ab050096fd5725eb Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 27 Jun 2016 12:50:39 +0530 Subject: gpu: nvgpu: remove unused code In gk20a_tsg_bind_channel_fd(), API gk20a_get_channel_from_file() already handles converting a channel fd to channel Hence explicit fget(ch_fd) is not required and is unused Coverity id : 32386 Bug 200192125 Change-Id: I28674cebf088240b8b15129a22f6743c856ed88f Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1171713 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 603ed6f5..0fa93da9 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c @@ -80,15 +80,14 @@ static bool gk20a_is_channel_active(struct gk20a *g, struct channel_gk20a *ch) static int gk20a_tsg_bind_channel_fd(struct tsg_gk20a *tsg, int ch_fd) { - struct file *f = fget(ch_fd); struct channel_gk20a *ch; int err; ch = gk20a_get_channel_from_file(ch_fd); if (!ch) return -EINVAL; + err = ch->g->ops.fifo.tsg_bind_channel(tsg, ch); - fput(f); return err; } -- cgit v1.2.2