Add some default cases for unreachable code to silence compiler warnings.
This was caused by r361481 when the buffer type was changed from an int to an enum. Reported by: mjg, rpokala Sponsored by: Chelsio Communications
This commit is contained in:
parent
1724c563e6
commit
1138b87ae6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361994
@ -323,6 +323,8 @@ cryptocteon_process(device_t dev, struct cryptop *crp, int hint)
|
||||
goto done;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (csp->csp_cipher_alg != 0) {
|
||||
|
@ -157,6 +157,8 @@ nlm_crypto_form_srcdst_segs(struct xlp_sec_command *cmd,
|
||||
crp->crp_buf.cb_buf, crp->crp_buf.cb_buf_len);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
__assert_unreachable();
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user