diff options
author | Toomas Soome <[email protected]> | 2020-09-01 05:35:11 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-31 19:35:11 -0700 |
commit | 1144586b57350f0f850d2428dccf7c80cbaa7485 (patch) | |
tree | 264d26124888c07d27f440b69830a010cd7e1c10 /module/zfs/spa.c | |
parent | abe4fbfd01c2440813c9f31ca6727473e22d0039 (diff) |
zio_ereport_post() and zio_ereport_start() return values are ignored
use (void) to silence analyzers.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Toomas Soome <[email protected]>
Closes #10857
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r-- | module/zfs/spa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 75ff398d1..aac469f44 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -2868,7 +2868,8 @@ spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type) spa->spa_loaded_ts.tv_nsec = 0; } if (error != EBADF) { - zfs_ereport_post(ereport, spa, NULL, NULL, NULL, 0, 0); + (void) zfs_ereport_post(ereport, spa, + NULL, NULL, NULL, 0, 0); } } spa->spa_load_state = error ? SPA_LOAD_ERROR : SPA_LOAD_NONE; |