staging : lustre : Remove braces from single-line body.
authorTabrez khan <khan.tabrez21@gmail.com>
Fri, 16 Dec 2016 14:29:31 +0000 (19:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:14:23 +0000 (15:14 +0100)
Remove unnecessary braces {} for single while statement.
This warning is found using checkpatch.pl.

Signed-off-by: Tabrez khan <khan.tabrez21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/cl_io.c

index 3f42457..ee7d677 100644 (file)
@@ -1119,9 +1119,9 @@ int cl_sync_io_wait(const struct lu_env *env, struct cl_sync_io *anchor,
        LASSERT(atomic_read(&anchor->csi_sync_nr) == 0);
 
        /* wait until cl_sync_io_note() has done wakeup */
-       while (unlikely(atomic_read(&anchor->csi_barrier) != 0)) {
+       while (unlikely(atomic_read(&anchor->csi_barrier) != 0))
                cpu_relax();
-       }
+
 
        return rc;
 }