Skip to content
Commit f8993dc6 authored by Adrian Huang's avatar Adrian Huang Committed by Joerg Roedel
Browse files

iommu/amd: Remove unnecessary assignment



From: Adrian Huang <ahuang12@lenovo.com>

The values of local variables are assigned after local variables
are declared, so no need to assign the initial value during the
variable declaration.

And, no need to assign NULL for the local variable 'ivrs_base'
after invoking acpi_put_table().

Signed-off-by: default avatarAdrian Huang <ahuang12@lenovo.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201210021330.2022-1-adrianhuang0701@gmail.com
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 6ee1d745
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment