PCI aerdrv: fix annoying warnings
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 02:21:11 +0000 (11:21 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:29:10 +0000 (09:29 -0700)
commitf6735590e9f441762ab5afeff64ded99e5b19a68
tree58e15ba0d4c00195da9e9b199b7fc73de7f51e64
parent73cd3b43f08cc9a9bcb168994b8e9ebd983ff573
PCI aerdrv: fix annoying warnings

Some compiler generates following warnings:

  In function 'aer_isr':
  warning: 'e_src.id' may be used uninitialized in this function
  warning: 'e_src.status' may be used uninitialized in this function

Avoid status flag "int ret" and return constants instead, so that
gcc sees the return value matching "it is initialized" better.

Acked-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv_core.c