ia64/PCI: Fix incorrect PCI resource end address
authorMatt Fleming <matt@codeblueprint.co.uk>
Wed, 4 May 2016 11:17:46 +0000 (12:17 +0100)
committerTony Luck <tony.luck@intel.com>
Thu, 5 May 2016 17:29:13 +0000 (10:29 -0700)
commit18c25526c9cd4041e8e5acba811cffa606c175b7
tree478ce94500a962a1ac3e29ffbc54a7303f625511
parente298c499cac1f175694f4ccfe5b532e5098b4716
ia64/PCI: Fix incorrect PCI resource end address

commit f976721e826e ("ia64/PCI: Use ioremap() instead of open-coded
equivalent") introduced the following compiler warning,

  arch/ia64/sn/kernel/io_init.c: In function 'sn_io_slot_fixup':
  arch/ia64/sn/kernel/io_init.c:189:19: warning: 'addr' may be used uninitialized in this function [-Wmaybe-uninitialized]
     res->end = addr + size;
                   ^

'addr' is indeed uninitialised and the correct value to use is
res->start.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/io_init.c