Commit fda9f5d4 authored by Shawn Lin's avatar Shawn Lin Committed by Rob Herring

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: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent fa976ff7
...@@ -274,10 +274,9 @@ struct of_pci_range *of_pci_range_parser_one(struct of_pci_range_parser *parser, ...@@ -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 */ /* Now consume following elements while they are contiguous */
while (parser->range + parser->np <= parser->end) { while (parser->range + parser->np <= parser->end) {
u32 flags, pci_space; u32 flags;
u64 pci_addr, cpu_addr, size; u64 pci_addr, cpu_addr, size;
pci_space = be32_to_cpup(parser->range);
flags = of_bus_pci_get_flags(parser->range); flags = of_bus_pci_get_flags(parser->range);
pci_addr = of_read_number(parser->range + 1, ns); pci_addr = of_read_number(parser->range + 1, ns);
cpu_addr = of_translate_address(parser->node, cpu_addr = of_translate_address(parser->node,
......
Markdown is supported
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