1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

coverity: move declaration out of the loop

Move declaration of count counter outside the while loop.
This commit is contained in:
Zdenek Kabelac 2018-03-17 13:57:40 +01:00
parent f2d0eefa77
commit b4c69320fc

View File

@ -166,6 +166,7 @@ int cluster_send(struct clog_request *rq)
{
int r;
int found = 0;
int count = 0;
struct iovec iov;
struct clog_cpg *entry;
@ -203,8 +204,6 @@ int cluster_send(struct clog_request *rq)
#if CMIRROR_HAS_CHECKPOINT
do {
int count = 0;
r = cpg_mcast_joined(entry->handle, CPG_TYPE_AGREED, &iov, 1);
if (r != SA_AIS_ERR_TRY_AGAIN)
break;