summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2017-07-12 17:59:06 +0800
committerRob Herring <robh@kernel.org>2017-07-21 10:46:15 -0500
commitfda9f5d4a97cedba3174641263a49d82ff3c3469 (patch)
tree4aa8352e53e62094823f1880ec9107cb0878df19 /drivers/of
parentfa976ff7b00c31af2b9069751cd55140d8aa30b4 (diff)
downloadlinux-stable-fda9f5d4a97cedba3174641263a49d82ff3c3469.tar.gz
linux-stable-fda9f5d4a97cedba3174641263a49d82ff3c3469.tar.bz2
linux-stable-fda9f5d4a97cedba3174641263a49d82ff3c3469.zip
of: remove unused pci_space variable from address.c
It was never used and could be removed, otherwise we could see a warning: drivers/of/address.c: In function 'of_pci_range_parser_one': drivers/of/address.c:277:14: warning: variable 'pci_space' set but not used [-Wunused-but-set-variable] Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/address.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index ca1c0f6301ea..792722e7d458 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -274,10 +274,9 @@ struct of_pci_range *of_pci_range_parser_one(struct of_pci_range_parser *parser,
/* Now consume following elements while they are contiguous */
while (parser->range + parser->np <= parser->end) {
- u32 flags, pci_space;
+ u32 flags;
u64 pci_addr, cpu_addr, size;
- pci_space = be32_to_cpup(parser->range);
flags = of_bus_pci_get_flags(parser->range);
pci_addr = of_read_number(parser->range + 1, ns);
cpu_addr = of_translate_address(parser->node,