summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2020-08-12 11:24:05 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-09-22 18:49:50 +0300
commit0358372bbe86705399490d82fb022aa34bdc2ee4 (patch)
tree9e2361a11c53d5582aca78d3a9c640685fa5e8b5 /drivers/misc
parent65887291c6a80c3f2263348548899818b334cc8a (diff)
downloadlinux-0358372bbe86705399490d82fb022aa34bdc2ee4.tar.gz
linux-0358372bbe86705399490d82fb022aa34bdc2ee4.tar.bz2
linux-0358372bbe86705399490d82fb022aa34bdc2ee4.zip
habanalabs: remove redundant assignment to variable
new_dma_pkt->ctl is assigned a value and then is reassigned a new value without the first value ever being used. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Tomer Tayar <ttayar@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index b6c3fcd21697..1cf37332a0ff 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -3971,8 +3971,6 @@ static int gaudi_patch_dma_packet(struct hl_device *hdev,
}
}
- new_dma_pkt->ctl = user_dma_pkt->ctl;
-
ctl = le32_to_cpu(user_dma_pkt->ctl);
if (likely(dma_desc_cnt))
ctl &= ~GAUDI_PKT_CTL_EB_MASK;