Re: [PATCH][next] iommu/vt-d: remove redundant assignment to variable err

From: Baolu Lu
Date: Tue Apr 23 2024 - 23:47:26 EST


On 4/11/24 5:05 PM, Colin Ian King wrote:
Variable err is being assigned a value that is never read. It is
either being re-assigned later on error exit paths, or never referenced
on the non-error path.

Cleans up clang scan build warning:
drivers/iommu/intel/dmar.c:1070:2: warning: Value stored to 'err' is
never read [deadcode.DeadStores]`

Signed-off-by: Colin Ian King<colin.i.king@xxxxxxxxx>
---
drivers/iommu/intel/dmar.c | 1 -
1 file changed, 1 deletion(-)

Patch has been queued for iommu/vt-d.

Best regards,
baolu