|
@@ -176,19 +176,10 @@ cryptodev_backend_complete(UserCreatable *uc, Error **errp)
|
|
{
|
|
{
|
|
CryptoDevBackend *backend = CRYPTODEV_BACKEND(uc);
|
|
CryptoDevBackend *backend = CRYPTODEV_BACKEND(uc);
|
|
CryptoDevBackendClass *bc = CRYPTODEV_BACKEND_GET_CLASS(uc);
|
|
CryptoDevBackendClass *bc = CRYPTODEV_BACKEND_GET_CLASS(uc);
|
|
- Error *local_err = NULL;
|
|
|
|
|
|
|
|
if (bc->init) {
|
|
if (bc->init) {
|
|
- bc->init(backend, &local_err);
|
|
|
|
- if (local_err) {
|
|
|
|
- goto out;
|
|
|
|
- }
|
|
|
|
|
|
+ bc->init(backend, errp);
|
|
}
|
|
}
|
|
-
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
-out:
|
|
|
|
- error_propagate(errp, local_err);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void cryptodev_backend_set_used(CryptoDevBackend *backend, bool used)
|
|
void cryptodev_backend_set_used(CryptoDevBackend *backend, bool used)
|