mbox series

[v2,0/3] edac: Fix error return code when edac_pci_add_device() or edac_device_add_device() fails

Message ID 20210531145302.9655-1-thunder.leizhen@huawei.com
Headers show
Series edac: Fix error return code when edac_pci_add_device() or edac_device_add_device() fails | expand

Message

Leizhen (ThunderTown) May 31, 2021, 2:52 p.m. UTC
v1 --> v2:
1. When edac_pci_add_device() fails, fix to return -ENODEV
2. When edac_device_add_device() fails, fix to return -ENXIO
3. Use 'ret' instead of 'res' to store the return value

Zhen Lei (3):
  edac: Fix error return code when edac_pci_add_device() fails
  edac: Fix error return code when edac_device_add_device() fails
  edac: Use 'ret' instead of 'res' to store the return value

 drivers/edac/altera_edac.c      | 70 +++++++++++++++++----------------
 drivers/edac/amd8111_edac.c     |  2 +
 drivers/edac/armada_xp_edac.c   |  8 ++--
 drivers/edac/cpc925_edac.c      | 16 ++++----
 drivers/edac/fsl_ddr_edac.c     | 24 +++++------
 drivers/edac/highbank_l2_edac.c | 22 ++++++-----
 drivers/edac/highbank_mc_edac.c | 20 +++++-----
 drivers/edac/layerscape_edac.c  |  8 ++--
 drivers/edac/mpc85xx_edac.c     | 46 +++++++++++-----------
 drivers/edac/octeon_edac-pci.c  |  9 +----
 drivers/edac/qcom_edac.c        |  4 +-
 drivers/edac/skx_base.c         |  6 +--
 drivers/edac/thunderx_edac.c    | 28 +++++++------
 drivers/edac/xgene_edac.c       |  6 +--
 14 files changed, 138 insertions(+), 131 deletions(-)

-- 
2.26.0.106.g9fadedd