Staging: lustre: Fix Space Requirement around ':' in conrpc.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 17 Oct 2013 14:26:52 +0000 (19:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 16:06:43 +0000 (09:06 -0700)
The patch fixes the following checkpatch.pl error in conrpc.c-
ERROR: spaces required around that ':'

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/conrpc.c

index de4b061..8b0ed72 100644 (file)
@@ -330,7 +330,7 @@ lstcon_rpc_trans_check(lstcon_rpc_trans_t *trans)
            !list_empty(&trans->tas_olink)) /* Not an end session RPC */
                return 1;
 
-       return (atomic_read(&trans->tas_remaining) == 0) ? 1: 0;
+       return (atomic_read(&trans->tas_remaining) == 0) ? 1 : 0;
 }
 
 int
@@ -669,7 +669,7 @@ lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats,
        brq->bar_bid     = tsb->tsb_id;
        brq->bar_testidx = tsb->tsb_index;
        brq->bar_opc     = transop == LST_TRANS_TSBRUN ? SRPC_BATCH_OPC_RUN :
-                          (transop == LST_TRANS_TSBSTOP ? SRPC_BATCH_OPC_STOP:
+                          (transop == LST_TRANS_TSBSTOP ? SRPC_BATCH_OPC_STOP :
                            SRPC_BATCH_OPC_QUERY);
 
        if (transop != LST_TRANS_TSBRUN &&
@@ -745,7 +745,7 @@ lstcon_dstnodes_prep(lstcon_group_t *grp, int idx,
                        continue;
                }
 
-               if (i > (end >= start ? end: grp->grp_nnode))
+               if (i > (end >= start ? end : grp->grp_nnode))
                        break;
 
                pid = lstcon_next_id((i - start), nkiov, kiov);