Skip to content

Commit a770ccd

Browse files
ColinIanKingjoergroedel
authored andcommitted
iommu/vt-d: Remove redundant assignment to variable err
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent ed30a4a commit a770ccd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iommu/intel/dmar.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,6 @@ static int alloc_iommu(struct dmar_drhd_unit *drhd)
10671067
goto error_free_seq_id;
10681068
}
10691069

1070-
err = -EINVAL;
10711070
if (!cap_sagaw(iommu->cap) &&
10721071
(!ecap_smts(iommu->ecap) || ecap_slts(iommu->ecap))) {
10731072
pr_info("%s: No supported address widths. Not attempting DMA translation.\n",

0 commit comments

Comments
 (0)