of: remove unused pci_space variable from address.c
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 12 Jul 2017 09:59:06 +0000 (17:59 +0800)
committerRob Herring <robh@kernel.org>
Fri, 21 Jul 2017 15:46:15 +0000 (10:46 -0500)
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>
drivers/of/address.c

index ca1c0f6301eabb8b452cf3dae2f7e870472fbd8b..792722e7d45884add844d9931ddef7dc5e816f0f 100644 (file)
@@ -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,