]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/spa.c
Fix gcc missing case warnings
[mirror_zfs.git] / module / zfs / spa.c
index 9ae16d316367da89dc36ae5048426b54753ba876..64f5e067ca97bdd99faa5cb469314439fd7fe618 100644 (file)
@@ -471,6 +471,9 @@ spa_prop_validate(spa_t *spa, nvlist_t *props)
                            intval != 0 && intval < ZIO_DEDUPDITTO_MIN)
                                error = EINVAL;
                        break;
+
+               default:
+                       break;
                }
 
                if (error)
@@ -1425,6 +1428,8 @@ static int
 spa_check_logs(spa_t *spa)
 {
        switch (spa->spa_log_state) {
+       default:
+               break;
        case SPA_LOG_MISSING:
                /* need to recheck in case slog has been restored */
        case SPA_LOG_UNKNOWN: