git: ab9d2f02a098 - main - amd_ecc_inject: return an error instead of ignoring it in tsc_modevent
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 16:25:58 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=ab9d2f02a098aad38bb2e04edb22a33294c18ac0
commit ab9d2f02a098aad38bb2e04edb22a33294c18ac0
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 16:22:56 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 16:25:50 +0000
amd_ecc_inject: return an error instead of ignoring it in tsc_modevent
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/dev/amd_ecc_inject/ecc_inject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/amd_ecc_inject/ecc_inject.c b/sys/dev/amd_ecc_inject/ecc_inject.c
index c0f3c142a3c8..657e10407dbc 100644
--- a/sys/dev/amd_ecc_inject/ecc_inject.c
+++ b/sys/dev/amd_ecc_inject/ecc_inject.c
@@ -237,9 +237,9 @@ tsc_modevent(module_t mod __unused, int type, void *data __unused)
case MOD_SHUTDOWN:
break;
default:
- return (EOPNOTSUPP);
+ error = EOPNOTSUPP;
}
- return (0);
+ return (error);
}
DEV_MODULE(tsc, tsc_modevent, NULL);