diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-27 20:16:22 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-27 20:16:22 +0300 |
commit | b62061b82a6e6783bed5f9052326694ba1418bba (patch) | |
tree | 1f9baae29f69c6b3f19700c884c3fb630cba5123 /drivers/edac/sifive_edac.c | |
parent | 35417d57efaaf06894868a2e8dfcd7b9f31bd0bf (diff) | |
parent | 7e5d6cf35329c8b232a1e97114545c1745d79083 (diff) | |
download | linux-b62061b82a6e6783bed5f9052326694ba1418bba.tar.xz |
Merge tag 'edac_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC updates from Borislav Petkov:
"A totally boring branch this time around: a garden variety of small
fixes all over the place"
* tag 'edac_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
EDAC/amd64: Do not warn when removing instances
EDAC/sifive: Fix return value check in ecc_register()
EDAC/aspeed: Remove unneeded semicolon
EDAC: remove set but not used variable 'ecc_loc'
EDAC: skx_common: downgrade message importance on missing PCI device
EDAC/Kconfig: Fix Kconfig indentation
Diffstat (limited to 'drivers/edac/sifive_edac.c')
-rw-r--r-- | drivers/edac/sifive_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/sifive_edac.c b/drivers/edac/sifive_edac.c index c0cc72a3b2be..3a3dcb14ed99 100644 --- a/drivers/edac/sifive_edac.c +++ b/drivers/edac/sifive_edac.c @@ -54,8 +54,8 @@ static int ecc_register(struct platform_device *pdev) p->dci = edac_device_alloc_ctl_info(0, "sifive_ecc", 1, "sifive_ecc", 1, 1, NULL, 0, edac_device_alloc_index()); - if (IS_ERR(p->dci)) - return PTR_ERR(p->dci); + if (!p->dci) + return -ENOMEM; p->dci->dev = &pdev->dev; p->dci->mod_name = "Sifive ECC Manager"; |