Skip to content

Commit 2a48b15

Browse files
ColinIanKingjoergroedel
authored andcommitted
iommu/amd: Remove variable cnt ind iommu_poll_ga_log()
Variable cnt is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Vasant Hegde <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 30a0b95 commit 2a48b15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iommu/amd/iommu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ EXPORT_SYMBOL(amd_iommu_register_ga_log_notifier);
767767

768768
static void iommu_poll_ga_log(struct amd_iommu *iommu)
769769
{
770-
u32 head, tail, cnt = 0;
770+
u32 head, tail;
771771

772772
if (iommu->ga_log == NULL)
773773
return;
@@ -780,7 +780,6 @@ static void iommu_poll_ga_log(struct amd_iommu *iommu)
780780
u64 log_entry;
781781

782782
raw = (u64 *)(iommu->ga_log + head);
783-
cnt++;
784783

785784
/* Avoid memcpy function-call overhead */
786785
log_entry = *raw;

0 commit comments

Comments
 (0)