credit = 1;
                        tx = list_entry(conn->ibc_tx_queue.next,
                                        kib_tx_t, tx_list);
-               } else
+               } else {
                        break;
+               }
 
                if (kiblnd_post_tx_locked(conn, tx, credit) != 0)
                        break;
 
        if (conn == NULL) {          /* raced with ksocknal_terminate_conn */
                LASSERT(sk->sk_data_ready != &ksocknal_data_ready);
                sk->sk_data_ready(sk);
-       } else
+       } else {
                ksocknal_read_callback(conn);
+       }
 
        read_unlock(&ksocknal_data.ksnd_global_lock);
 }
 
        if (hello->kshm_nips == 0)
                goto out;
 
-       for (i = 0; i < (int) hello->kshm_nips; i++) {
+       for (i = 0; i < (int) hello->kshm_nips; i++)
                hello->kshm_ips[i] = __cpu_to_le32(hello->kshm_ips[i]);
-       }
 
        rc = lnet_sock_write(sock, hello->kshm_ips,
                             hello->kshm_nips * sizeof(__u32),
 
        }
 
        nf = libcfs_lnd2netstrfns(lnd);
-       if (nf == NULL)
+       if (nf == NULL) {
                snprintf(buf, buf_size, "%x@<%u:%u>", addr, lnd, nnum);
-       else {
+       } else {
                size_t addr_len;
 
                nf->nf_addr2str(addr, buf, buf_size);
 
        if (len > *lenp) {    /* linux-supplied buffer is too small */
                rc = -EINVAL;
        } else if (len > 0) { /* wrote something */
-               if (copy_to_user(buffer, tmpstr, len))
+               if (copy_to_user(buffer, tmpstr, len)) {
                        rc = -EFAULT;
-               else {
+               } else {
                        off += 1;
                        *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off);
                }
        if (len > *lenp) {    /* linux-supplied buffer is too small */
                rc = -EINVAL;
        } else if (len > 0) { /* wrote something */
-               if (copy_to_user(buffer, tmpstr, len))
+               if (copy_to_user(buffer, tmpstr, len)) {
                        rc = -EFAULT;
-               else {
+               } else {
                        off += 1;
                        *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off);
                }
 
 
        lstcon_group_drain(grp, 0);
 
-       for (i = 0; i < LST_NODE_HASHSIZE; i++) {
+       for (i = 0; i < LST_NODE_HASHSIZE; i++)
                LASSERT(list_empty(&grp->grp_ndl_hash[i]));
-       }
 
        LIBCFS_FREE(grp, offsetof(lstcon_group_t,
                                  grp_ndl_hash[LST_NODE_HASHSIZE]));
        LASSERT(list_empty(&console_session.ses_bat_list));
        LASSERT(list_empty(&console_session.ses_trans_list));
 
-       for (i = 0; i < LST_NODE_HASHSIZE; i++) {
+       for (i = 0; i < LST_NODE_HASHSIZE; i++)
                LASSERT(list_empty(&console_session.ses_ndl_hash[i]));
-       }
 
        LIBCFS_FREE(console_session.ses_ndl_hash,
                    sizeof(struct list_head) * LST_GLOBAL_HASHSIZE);
 
        LASSERT(!srpc_event_pending(rpc));
        LASSERT(atomic_read(&rpc->crpc_refcount) == 0);
 
-       if (rpc->crpc_fini == NULL) {
+       if (rpc->crpc_fini == NULL)
                LIBCFS_FREE(rpc, srpc_client_rpc_size(rpc));
-       } else {
+       else
                (*rpc->crpc_fini) (rpc);
-       }
 
        return;
 }