mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Style(9).
This commit is contained in:
parent
ed67c5d584
commit
ed6c3e478f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181646
@ -663,13 +663,14 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp,
|
||||
*/
|
||||
if (LIST_EMPTY(&sc->sc_workers)) {
|
||||
error = crypto_newsession(&wr->w_sid, &crie,
|
||||
CRYPTOCAP_F_HARDWARE);
|
||||
CRYPTOCAP_F_HARDWARE);
|
||||
if (error == 0)
|
||||
sc->sc_crypto = G_ELI_CRYPTO_HW;
|
||||
}
|
||||
if (sc->sc_crypto == G_ELI_CRYPTO_SW)
|
||||
if (sc->sc_crypto == G_ELI_CRYPTO_SW) {
|
||||
error = crypto_newsession(&wr->w_sid, &crie,
|
||||
CRYPTOCAP_F_SOFTWARE);
|
||||
CRYPTOCAP_F_SOFTWARE);
|
||||
}
|
||||
if (error != 0) {
|
||||
free(wr, M_ELI);
|
||||
if (req != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user