From 4671369ab2253b608fdc72871931fe0f07dda7ed Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 26 Jun 2017 11:19:34 -0700 Subject: [PATCH] blobstore: fix declaration after statement Change-Id: I1439b471b101b390fcbef558039f2a543f465acd Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/367121 Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker --- lib/blob/blobstore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 47a6cc1d3..bb2effadd 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -427,6 +427,7 @@ _spdk_blob_serialize(const struct spdk_blob *blob, struct spdk_blob_md_page **pa int rc; uint8_t *buf; size_t remaining_sz; + uint64_t last_cluster; assert(pages != NULL); assert(page_count != NULL); @@ -484,7 +485,7 @@ _spdk_blob_serialize(const struct spdk_blob *blob, struct spdk_blob_md_page **pa } /* Serialize extents */ - uint64_t last_cluster = 0; + last_cluster = 0; while (last_cluster < blob->active.num_clusters) { _spdk_blob_serialize_extent(blob, last_cluster, &last_cluster, buf, remaining_sz);