Skip to content

Commit 8a94b4e

Browse files
Yang Lishuahkh
authored andcommitted
selftests/ipc: remove unneeded semicolon
Eliminate the following coccicheck warning: ./tools/testing/selftests/ipc/msgque.c:72:3-4: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:183:2-3: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:191:2-3: Unneeded semicolon Signed-off-by: Yang Li <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 1d317c1 commit 8a94b4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/ipc/msgque.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int restore_queue(struct msgque_data *msgque)
6969
printf("msgsnd failed (%m)\n");
7070
ret = -errno;
7171
goto destroy;
72-
};
72+
}
7373
}
7474
return 0;
7575

@@ -180,15 +180,15 @@ int fill_msgque(struct msgque_data *msgque)
180180
IPC_NOWAIT) != 0) {
181181
printf("First message send failed (%m)\n");
182182
return -errno;
183-
};
183+
}
184184

185185
msgbuf.mtype = ANOTHER_MSG_TYPE;
186186
memcpy(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING));
187187
if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(ANOTHER_TEST_STRING),
188188
IPC_NOWAIT) != 0) {
189189
printf("Second message send failed (%m)\n");
190190
return -errno;
191-
};
191+
}
192192
return 0;
193193
}
194194

0 commit comments

Comments
 (0)