PCI: aerdrv: rework add_error_device
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Thu, 15 Apr 2010 04:14:17 +0000 (13:14 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 May 2010 19:01:15 +0000 (12:01 -0700)
commit4a0c096efd4383fc98aa40e195363f600ba814f8
tree61f7f4aa18e7905b227f2de3622dd43403fc0551
parentbd17d4742d5a8cbedd41a1d44c0cdee84a532363
PCI: aerdrv: rework add_error_device

Stop iteration if we cannot register any more.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv_core.c