diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 11:21:11 +0900 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-30 09:29:10 -0700 |
commit | f6735590e9f441762ab5afeff64ded99e5b19a68 (patch) | |
tree | 58e15ba0d4c00195da9e9b199b7fc73de7f51e64 /drivers/pci/hotplug/shpchp_hpc.c | |
parent | 73cd3b43f08cc9a9bcb168994b8e9ebd983ff573 (diff) | |
download | linux-f6735590e9f441762ab5afeff64ded99e5b19a68.tar.gz linux-f6735590e9f441762ab5afeff64ded99e5b19a68.tar.bz2 linux-f6735590e9f441762ab5afeff64ded99e5b19a68.zip |
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>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_hpc.c')
0 files changed, 0 insertions, 0 deletions