migration/rdma: Use bool for two RDMAContext flags
@error_reported and @received_error are flags. The latter is even assigned bool true. Change them from int to bool. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20230928132019.2544702-16-armbru@redhat.com>
This commit is contained in:
parent
6a3792d78d
commit
89997ac318
@ -91,7 +91,7 @@ static uint32_t known_capabilities = RDMA_CAPABILITY_PIN_ALL;
|
|||||||
if (!rdma->error_reported) { \
|
if (!rdma->error_reported) { \
|
||||||
error_report("RDMA is in an error state waiting migration" \
|
error_report("RDMA is in an error state waiting migration" \
|
||||||
" to abort!"); \
|
" to abort!"); \
|
||||||
rdma->error_reported = 1; \
|
rdma->error_reported = true; \
|
||||||
} \
|
} \
|
||||||
return rdma->error_state; \
|
return rdma->error_state; \
|
||||||
} \
|
} \
|
||||||
@ -365,8 +365,8 @@ typedef struct RDMAContext {
|
|||||||
* and remember the error state.
|
* and remember the error state.
|
||||||
*/
|
*/
|
||||||
int error_state;
|
int error_state;
|
||||||
int error_reported;
|
bool error_reported;
|
||||||
int received_error;
|
bool received_error;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Description of ram blocks used throughout the code.
|
* Description of ram blocks used throughout the code.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user