]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Remove redundant assignment to variable agaw
authorColin Ian King <colin.king@canonical.com>
Thu, 10 Jun 2021 02:00:53 +0000 (10:00 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:12 +0000 (09:06 +0200)
commitbc1d203d8c76fd595222feb9036d2e1fb9b1d654
tree79857ed1964ad04251603404074658866d3c9bf4
parent522fa64953e0d3fbb5fa5fd7565121714af2a489
iommu/vt-d: Remove redundant assignment to variable agaw

The variable agaw is initialized with a value that is never read and it
is being updated later with a new value as a counter in a for-loop. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210416171826.64091-1-colin.king@canonical.com
Link: https://lore.kernel.org/r/20210610020115.1637656-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c