crypto: minor clean up

Use of _SAFE macro when not required.

Change-Id: I9bc9fd8dff80312ffc85fd0d721b9c8df55f6388
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/431823
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
paul luse 2018-11-02 10:26:52 -07:00 committed by Jim Harris
parent 9fb6947617
commit c9a67a0037

View File

@ -1036,9 +1036,9 @@ vbdev_crypto_dump_info_json(void *ctx, struct spdk_json_write_ctx *w)
static int static int
vbdev_crypto_config_json(struct spdk_json_write_ctx *w) vbdev_crypto_config_json(struct spdk_json_write_ctx *w)
{ {
struct vbdev_crypto *crypto_bdev, *tmp; struct vbdev_crypto *crypto_bdev;
TAILQ_FOREACH_SAFE(crypto_bdev, &g_vbdev_crypto, link, tmp) { TAILQ_FOREACH(crypto_bdev, &g_vbdev_crypto, link) {
spdk_json_write_object_begin(w); spdk_json_write_object_begin(w);
spdk_json_write_named_string(w, "method", "construct_crypto_bdev"); spdk_json_write_named_string(w, "method", "construct_crypto_bdev");
spdk_json_write_named_object_begin(w, "params"); spdk_json_write_named_object_begin(w, "params");