Fix gcc missing case warnings

Gcc ASSERT() missing cases are impossible

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf
2010-08-26 09:52:41 -07:00
parent 2598c0012d
commit e75c13c353
12 changed files with 51 additions and 1 deletions
+5
View 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: