ipc-msg-avoid-waking-sender-upon-full-queue-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 10 Sep 2016 10:34:32 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:32 +0000 (20:34 +1000)
WARNING: braces {} are not necessary for single statement blocks
#134: FILE: ipc/msg.c:679:
+ if (msg_fits_inqueue(msq, msgsz)) {
  break;
  }

total: 0 errors, 1 warnings, 118 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/ipc-msg-avoid-waking-sender-upon-full-queue.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c

index 1c455df759387502fc096d0a4d199856f50f619c..1ce3d180c58ffa4f50a078c98f73eb418b81ac6e 100644 (file)
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -676,9 +676,8 @@ long do_msgsnd(int msqid, long mtype, void __user *mtext,
                if (err)
                        goto out_unlock0;
 
-               if (msg_fits_inqueue(msq, msgsz)) {
+               if (msg_fits_inqueue(msq, msgsz))
                        break;
-               }
 
                /* queue full, wait: */
                if (msgflg & IPC_NOWAIT) {
This page took 0.026161 seconds and 5 git commands to generate.