Commit 49e9bfda authored by Darek Stojaczyk's avatar Darek Stojaczyk Committed by Ben Walker
Browse files

bdev/crypto: remove unnecessary driver init call on crypto dev hotplug



The crypto drivers are now always initialized at
bdev module init, so any subsequent attempts to
init them would immediately return with rc = 0.

Besides, from the code perspective, this call does
not have the proper error handling. To clean up
all of this, we remove the call entirely.

Change-Id: I8e4f5a314b8c5e83a50c668d6c8953a95d6832cc
Signed-off-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/430678


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 010f723d
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1209,11 +1209,6 @@ create_crypto_disk(const char *bdev_name, const char *vbdev_name,
		return rc;
	}

	rc = vbdev_crypto_init_crypto_drivers();
	if (rc) {
		return rc;
	}

	TAILQ_FOREACH_SAFE(crypto_bdev, &g_vbdev_crypto, link, tmp) {
		if (strcmp(crypto_bdev->base_bdev->name, bdev->name) == 0) {
			rc = spdk_vbdev_register(&crypto_bdev->crypto_bdev,