summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-09-28 12:18:04 +0800
committerOded Gabbay <oded.gabbay@gmail.com>2019-11-21 11:35:44 +0200
commit1e295d4dd5b2e3d9dab68bfcab1f5666cde3804d (patch)
treeec7a47a18f3e9ca624209b26707dd957e34db4ea /drivers/misc/habanalabs
parentabb7e16fb6dfc32d0c0e63787409fdb4c348915c (diff)
downloadlinux-1e295d4dd5b2e3d9dab68bfcab1f5666cde3804d.tar.bz2
habanalabs: remove set but not used variable 'ctx'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/habanalabs/device.c: In function hpriv_release: drivers/misc/habanalabs/device.c:45:17: warning: variable ctx set but not used [-Wunused-but-set-variable] It is never used since commit eb7caf84b029 ("habanalabs: maintain a list of file private data objects") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs')
-rw-r--r--drivers/misc/habanalabs/device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/device.c b/drivers/misc/habanalabs/device.c
index 459fee70a597..2f5a4da707e7 100644
--- a/drivers/misc/habanalabs/device.c
+++ b/drivers/misc/habanalabs/device.c
@@ -42,12 +42,10 @@ static void hpriv_release(struct kref *ref)
{
struct hl_fpriv *hpriv;
struct hl_device *hdev;
- struct hl_ctx *ctx;
hpriv = container_of(ref, struct hl_fpriv, refcount);
hdev = hpriv->hdev;
- ctx = hpriv->ctx;
put_pid(hpriv->taskpid);