Commit 0358372b authored by Oded Gabbay's avatar Oded Gabbay

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: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarTomer Tayar <ttayar@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 65887291
...@@ -3971,8 +3971,6 @@ static int gaudi_patch_dma_packet(struct hl_device *hdev, ...@@ -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); ctl = le32_to_cpu(user_dma_pkt->ctl);
if (likely(dma_desc_cnt)) if (likely(dma_desc_cnt))
ctl &= ~GAUDI_PKT_CTL_EB_MASK; ctl &= ~GAUDI_PKT_CTL_EB_MASK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment