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>
This commit is contained in:
parent
65887291c6
commit
0358372bbe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue