x86, swiotlb: Simplify pci_swiotlb_detect_override()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 16 Dec 2016 13:28:40 +0000 (14:28 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 19 Dec 2016 14:05:20 +0000 (09:05 -0500)
commit6c206e4d99f2ed2a5a59875858e3beecc69b6474
tree59831dec45a58d4e5cb353c92c4c20f14092c3f3
parentb5cab0da75c292ffa0fbd68dd2c820066b2842de
x86, swiotlb: Simplify pci_swiotlb_detect_override()

At the end of the function, the local variable use_swiotlb has always
the same value as the global variable swiotlb. Hence drop the local
variable completely.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/kernel/pci-swiotlb.c