From f5286c1dd19d219dfb76b2ccc18576a254f25ab0 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Fri, 3 Jan 2020 15:14:48 +1100 Subject: [PATCH] ipc/msg.c: Adjust indentation in ksys_msgctl Clang warns: ../ipc/msg.c:621:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return msgctl_down(ns, msqid, cmd, &msqid64.msg_perm, msqid64.msg_qbytes); ^ ../ipc/msg.c:619:3: note: previous statement is here if (copy_msqid_from_user(&msqid64, buf, version)) ^ 1 warning generated. This warning occurs because there is a space after the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/829 Link: http://lkml.kernel.org/r/20191218032932.37479-1-natechancellor@gmail.com Signed-off-by: Nathan Chancellor Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- ipc/msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipc/msg.c b/ipc/msg.c index 22ed09ded601a5..caca67368cb5b1 100644 --- a/ipc/msg.c +++ b/ipc/msg.c @@ -618,7 +618,8 @@ static long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf, int ver case IPC_SET: if (copy_msqid_from_user(&msqid64, buf, version)) return -EFAULT; - return msgctl_down(ns, msqid, cmd, &msqid64.msg_perm, msqid64.msg_qbytes); + return msgctl_down(ns, msqid, cmd, &msqid64.msg_perm, + msqid64.msg_qbytes); case IPC_RMID: return msgctl_down(ns, msqid, cmd, NULL, 0); default: