Skip to content

Commit 40f4f70

Browse files
maurizio-lombardiigaw
authored andcommitted
mi-mctp: initialize the rc variable in handle_mctp_endpoint()
Keep static analyzers happy. Signed-off-by: Maurizio Lombardi <[email protected]>
1 parent ed442fe commit 40f4f70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/mi-mctp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ static int handle_mctp_endpoint(nvme_root_t root, const char* objpath,
593593
bool have_eid = false, have_net = false, have_nvmemi = false;
594594
mctp_eid_t eid;
595595
int net;
596-
int rc;
596+
int rc = 0;
597597

598598
/* for each property */
599599
for (;;) {

0 commit comments

Comments
 (0)