selftests/ipc: remove unneeded semicolon
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 8 Feb 2021 10:24:00 +0000 (18:24 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 8 Feb 2021 23:32:43 +0000 (16:32 -0700)
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 <yang.lee@linux.alibaba.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ipc/msgque.c

index 5ec4d9e18806cd81b547d5f64d2137af0a3249b5..656c43c2404471c3397b44b499b80c9f7e74007c 100644 (file)
@@ -69,7 +69,7 @@ int restore_queue(struct msgque_data *msgque)
                        printf("msgsnd failed (%m)\n");
                        ret = -errno;
                        goto destroy;
-               };
+               }
        }
        return 0;
 
@@ -180,7 +180,7 @@ int fill_msgque(struct msgque_data *msgque)
                                IPC_NOWAIT) != 0) {
                printf("First message send failed (%m)\n");
                return -errno;
-       };
+       }
 
        msgbuf.mtype = ANOTHER_MSG_TYPE;
        memcpy(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING));
@@ -188,7 +188,7 @@ int fill_msgque(struct msgque_data *msgque)
                                IPC_NOWAIT) != 0) {
                printf("Second message send failed (%m)\n");
                return -errno;
-       };
+       }
        return 0;
 }