staging: lustre: remove unnecessary blank lines reported by checkpatch.pl
authorJames Simmons <jsimmons@infradead.org>
Fri, 12 Feb 2016 17:06:03 +0000 (12:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:20:32 +0000 (16:20 -0800)
Remove any useless blank lines reported by checkpatch.pl
for LNet layer.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 files changed:
drivers/staging/lustre/include/linux/lnet/nidstr.h
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c
drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c
drivers/staging/lustre/lnet/lnet/acceptor.c
drivers/staging/lustre/lnet/lnet/api-ni.c
drivers/staging/lustre/lnet/lnet/config.c
drivers/staging/lustre/lnet/lnet/lib-md.c
drivers/staging/lustre/lnet/lnet/lib-move.c
drivers/staging/lustre/lnet/lnet/lib-msg.c
drivers/staging/lustre/lnet/lnet/router.c
drivers/staging/lustre/lnet/selftest/brw_test.c
drivers/staging/lustre/lnet/selftest/console.c

index 9a705e1d468c98bb185e47bc645c3e460401eb9f..937fcc9e4a300756717862b9f30166397defb64d 100644 (file)
@@ -69,6 +69,7 @@ static inline char *libcfs_lnd2str(__u32 lnd)
        return libcfs_lnd2str_r(lnd, libcfs_next_nidstring(),
                                LNET_NIDSTR_SIZE);
 }
+
 int libcfs_str2lnd(const char *str);
 char *libcfs_net2str_r(__u32 net, char *buf, size_t buf_size);
 static inline char *libcfs_net2str(__u32 net)
@@ -76,12 +77,14 @@ static inline char *libcfs_net2str(__u32 net)
        return libcfs_net2str_r(net, libcfs_next_nidstring(),
                                LNET_NIDSTR_SIZE);
 }
+
 char *libcfs_nid2str_r(lnet_nid_t nid, char *buf, size_t buf_size);
 static inline char *libcfs_nid2str(lnet_nid_t nid)
 {
        return libcfs_nid2str_r(nid, libcfs_next_nidstring(),
                                LNET_NIDSTR_SIZE);
 }
+
 __u32 libcfs_str2net(const char *str);
 lnet_nid_t libcfs_str2nid(const char *str);
 int libcfs_str2anynid(lnet_nid_t *nid, const char *str);
index 8ad128c9c9df99fbd8a923c6db7265edc6b924d0..09eaecd536d2bfe144126c69de0329afc7df997b 100644 (file)
@@ -399,7 +399,6 @@ kib_peer_t *kiblnd_find_peer_locked(lnet_nid_t nid)
        kib_peer_t *peer;
 
        list_for_each(tmp, peer_list) {
-
                peer = list_entry(tmp, kib_peer_t, ibp_list);
 
                LASSERT(peer->ibp_connecting > 0 || /* creating conns */
@@ -439,9 +438,7 @@ static int kiblnd_get_peer_info(lnet_ni_t *ni, int index,
        read_lock_irqsave(&kiblnd_data.kib_global_lock, flags);
 
        for (i = 0; i < kiblnd_data.kib_peer_hash_size; i++) {
-
                list_for_each(ptmp, &kiblnd_data.kib_peers[i]) {
-
                        peer = list_entry(ptmp, kib_peer_t, ibp_list);
                        LASSERT(peer->ibp_connecting > 0 ||
                                peer->ibp_accepting > 0 ||
@@ -554,7 +551,6 @@ static kib_conn_t *kiblnd_get_conn_by_idx(lnet_ni_t *ni, int index)
 
        for (i = 0; i < kiblnd_data.kib_peer_hash_size; i++) {
                list_for_each(ptmp, &kiblnd_data.kib_peers[i]) {
-
                        peer = list_entry(ptmp, kib_peer_t, ibp_list);
                        LASSERT(peer->ibp_connecting > 0 ||
                                peer->ibp_accepting > 0 ||
@@ -992,7 +988,6 @@ static int kiblnd_close_matching_conns(lnet_ni_t *ni, lnet_nid_t nid)
 
        for (i = lo; i <= hi; i++) {
                list_for_each_safe(ptmp, pnxt, &kiblnd_data.kib_peers[i]) {
-
                        peer = list_entry(ptmp, kib_peer_t, ibp_list);
                        LASSERT(peer->ibp_connecting > 0 ||
                                peer->ibp_accepting > 0 ||
@@ -1584,7 +1579,6 @@ int kiblnd_fmr_pool_map(kib_fmr_poolset_t *fps, __u64 *pages, int npages,
                CDEBUG(D_NET, "Another thread is allocating new FMR pool, waiting for her to complete\n");
                schedule();
                goto again;
-
        }
 
        if (time_before(cfs_time_current(), fps->fps_next_retry)) {
index cbf5d0a495d21195202878df42af3bf09c74592b..6b5a0b3d6fb2abc03678c6877d9f075c5ef04270 100644 (file)
@@ -2287,7 +2287,6 @@ kiblnd_passive_connect(struct rdma_cm_id *cmid, void *priv, int priv_nob)
                        rej.ibr_why = IBLND_REJECT_RDMA_FRAGS;
 
                goto failed;
-
        }
 
        if (reqmsg->ibm_u.connparams.ibcp_max_msg_size > IBLND_MSG_SIZE) {
@@ -3128,7 +3127,6 @@ kiblnd_connd(void *arg)
        spin_lock_irqsave(&kiblnd_data.kib_connd_lock, flags);
 
        while (!kiblnd_data.kib_shutdown) {
-
                dropped_lock = 0;
 
                if (!list_empty(&kiblnd_data.kib_connd_zombies)) {
index 6bf92fd0bcb8896b0c0b78084c1dc510e4efed7f..c428684ef93e45a61d84d396bd99d056ab76c92b 100644 (file)
@@ -182,7 +182,6 @@ ksocknal_find_peer_locked(lnet_ni_t *ni, lnet_process_id_t id)
        ksock_peer_t *peer;
 
        list_for_each(tmp, peer_list) {
-
                peer = list_entry(tmp, ksock_peer_t, ksnp_list);
 
                LASSERT(!peer->ksnp_closing);
@@ -264,7 +263,6 @@ ksocknal_get_peer_info(lnet_ni_t *ni, int index,
        read_lock(&ksocknal_data.ksnd_global_lock);
 
        for (i = 0; i < ksocknal_data.ksnd_peer_hash_size; i++) {
-
                list_for_each(ptmp, &ksocknal_data.ksnd_peers[i]) {
                        peer = list_entry(ptmp, ksock_peer_t, ksnp_list);
 
@@ -1015,7 +1013,6 @@ ksocknal_connecting(ksock_peer_t *peer, __u32 ipaddr)
        ksock_route_t *route;
 
        list_for_each_entry(route, &peer->ksnp_routes, ksnr_list) {
-
                if (route->ksnr_ipaddr == ipaddr)
                        return route->ksnr_connecting;
        }
@@ -1787,7 +1784,6 @@ ksocknal_close_matching_conns(lnet_process_id_t id, __u32 ipaddr)
        for (i = lo; i <= hi; i++) {
                list_for_each_safe(ptmp, pnxt,
                                   &ksocknal_data.ksnd_peers[i]) {
-
                        peer = list_entry(ptmp, ksock_peer_t, ksnp_list);
 
                        if (!((id.nid == LNET_NID_ANY || id.nid == peer->ksnp_id.nid) &&
@@ -2330,7 +2326,6 @@ ksocknal_base_shutdown(void)
                                        continue;
 
                                for (j = 0; j < info->ksi_nthreads_max; j++) {
-
                                        sched = &info->ksi_scheds[j];
                                        LASSERT(list_empty(
                                                &sched->kss_tx_conns));
@@ -2387,7 +2382,6 @@ ksocknal_base_shutdown(void)
 static __u64
 ksocknal_new_incarnation(void)
 {
-
        /* The incarnation number is the time this module loaded and it
         * identifies this particular instance of the socknal.
         */
index 1243f9270d6ded15df00eb96ba2ed0500b057f6e..c82ed27be9d70548048a7613f4f8eeca44f4e21a 100644 (file)
@@ -589,7 +589,6 @@ ksocknal_process_transmit (ksock_conn_t *conn, ksock_tx_t *tx)
 static void
 ksocknal_launch_connection_locked (ksock_route_t *route)
 {
-
        /* called holding write lock on ksnd_global_lock */
 
        LASSERT(!route->ksnr_scheduled);
@@ -2147,7 +2146,6 @@ ksocknal_connd_get_route_locked(signed long *timeout_p)
        /* connd_routes can contain both pending and ordinary routes */
        list_for_each_entry(route, &ksocknal_data.ksnd_connd_routes,
                            ksnr_connd_list) {
-
                if (route->ksnr_retry_interval == 0 ||
                    cfs_time_aftereq(now, route->ksnr_timeout))
                        return route;
@@ -2495,7 +2493,6 @@ ksocknal_check_peer_timeouts (int idx)
 
                        if (cfs_time_aftereq(cfs_time_current(),
                                             tx->tx_deadline)) {
-
                                ksocknal_peer_addref(peer);
                                read_unlock(&ksocknal_data.ksnd_global_lock);
 
@@ -2569,7 +2566,6 @@ ksocknal_reaper (void *arg)
        spin_lock_bh(&ksocknal_data.ksnd_reaper_lock);
 
        while (!ksocknal_data.ksnd_shuttingdown) {
-
                if (!list_empty (&ksocknal_data.ksnd_deathrow_conns)) {
                        conn = list_entry (ksocknal_data. \
                                               ksnd_deathrow_conns.next,
index b330f6476f32daad9cfbe46cbd66ed50add33f42..8c95cc5bc889708f7cb9ddbde83d18556b7a2886 100644 (file)
@@ -223,7 +223,6 @@ lnet_accept(struct socket *sock, __u32 magic)
        LASSERT(rc == 0);                     /* we succeeded before */
 
        if (!lnet_accept_magic(magic, LNET_PROTO_ACCEPTOR_MAGIC)) {
-
                if (lnet_accept_magic(magic, LNET_PROTO_MAGIC)) {
                        /*
                         * future version compatibility!
@@ -363,7 +362,6 @@ lnet_acceptor(void *arg)
                return rc;
 
        while (!lnet_acceptor_state.pta_shutdown) {
-
                rc = lnet_sock_accept(&newsock, lnet_acceptor_state.pta_sock);
                if (rc != 0) {
                        if (rc != -EAGAIN) {
index e59fbfb668775f09d5085fc6ede765db36dabcee..78188a9017538bb0bf44b4771caa6e62027bb5c9 100644 (file)
@@ -340,7 +340,6 @@ lnet_counters_get(lnet_counters_t *counters)
                counters->recv_length  += ctr->recv_length;
                counters->route_length += ctr->route_length;
                counters->drop_length  += ctr->drop_length;
-
        }
        lnet_net_unlock(LNET_LOCK_EX);
 }
index 5339dee56840c22deb4f0eaa6fd3db4dad8f55d0..695db24d451bc989d1674f2a954003d137efd18a 100644 (file)
@@ -221,7 +221,6 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
                 * NB we don't check interface conflicts here; it's the LNDs
                 * responsibility (if it cares at all)
                 */
-
                if (square != NULL && (comma == NULL || square < comma)) {
                        /*
                         * i.e: o2ib0(ib0)[1,2], number between square
@@ -251,7 +250,6 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
 
                if (bracket == NULL ||
                    (comma != NULL && comma < bracket)) {
-
                        /* no interface list specified */
 
                        if (comma != NULL)
@@ -528,7 +526,6 @@ lnet_str2tbs_expand(struct list_head *tbs, char *str)
                goto failed;
 
        for (parsed = sep; parsed < sep2; parsed = enditem) {
-
                enditem = ++parsed;
                while (enditem < sep2 && *enditem != ',')
                        enditem++;
@@ -538,9 +535,7 @@ lnet_str2tbs_expand(struct list_head *tbs, char *str)
 
                if (sscanf(parsed, "%d-%d/%d%n", &lo, &hi,
                           &stride, &scanned) < 3) {
-
                        if (sscanf(parsed, "%d-%d%n", &lo, &hi, &scanned) < 2) {
-
                                /* simple string enumeration */
                                if (lnet_expand1tb(&pending, str, sep, sep2,
                                                   parsed,
@@ -564,7 +559,6 @@ lnet_str2tbs_expand(struct list_head *tbs, char *str)
                        goto failed;
 
                for (i = lo; i <= hi; i += stride) {
-
                        snprintf(num, sizeof(num), "%d", i);
                        nob = strlen(num);
                        if (nob + 1 == sizeof(num))
index fef517dcf92afe4581083e459a35563cb081abdb..4d59bac199f50736e5b752b05ec7c529a2a237e3 100644 (file)
@@ -106,7 +106,6 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
        lmd->md_flags = (unlink == LNET_UNLINK) ? LNET_MD_FLAG_AUTO_UNLINK : 0;
 
        if ((umd->options & LNET_MD_IOVEC) != 0) {
-
                if ((umd->options & LNET_MD_KIOV) != 0) /* Can't specify both */
                        return -EINVAL;
 
index afc4522ea77d5bf47e6bc033af7b99627d30cff2..12bb983fd9912fa4ae9913c4a0f88cd489782ec6 100644 (file)
@@ -1726,7 +1726,6 @@ lnet_print_hdr(lnet_hdr_t *hdr)
                      hdr->msg.reply.dst_wmd.wh_object_cookie,
                      hdr->payload_length);
        }
-
 }
 
 int
@@ -1866,7 +1865,6 @@ lnet_parse(lnet_ni_t *ni, lnet_hdr_t *hdr, lnet_nid_t from_nid,
        /* msg zeroed in lnet_msg_alloc;
         * i.e. flags all clear, pointers NULL etc
         */
-
        msg->msg_type = type;
        msg->msg_private = private;
        msg->msg_receiving = 1;
index a680e6827370feed38c286a97b6471d4e33a6b84..eb4aa3430105e8ef16dd721509a1bc6dae1b05e5 100644 (file)
@@ -74,7 +74,6 @@ lnet_build_msg_event(lnet_msg_t *msg, lnet_event_kind_t ev_type)
                ev->initiator.nid = LNET_NID_ANY;
                ev->initiator.pid = the_lnet.ln_pid;
                ev->sender        = LNET_NID_ANY;
-
        } else {
                /* event for passive message */
                ev->target.pid    = hdr->dest_pid;
index e447b1a13a654722bde8e842e6885c24b5813085..65f951ca198b7949baaaa21e3061f3913147b274 100644 (file)
@@ -353,7 +353,6 @@ lnet_add_route(__u32 net, unsigned int hops, lnet_nid_t gateway,
                CERROR("Error %d creating route %s %d %s\n", rc,
                       libcfs_net2str(net), hops,
                       libcfs_nid2str(gateway));
-
                return rc;
        }
 
index 88fb54dc4050385a5954b790e3789a7ce94811c5..4af91cb01bae1a017585370454ce62eb5036c007 100644 (file)
@@ -505,7 +505,6 @@ void brw_init_test_client(void)
 srpc_service_t brw_test_service;
 void brw_init_test_service(void)
 {
-
        brw_test_service.sv_id         = SRPC_SERVICE_BRW;
        brw_test_service.sv_name       = "brw_test";
        brw_test_service.sv_handler    = brw_server_handle;
index 64d58d1dcb59d19a6b82c2dd52a75f918ca4beeb..ab0a3f7cf3668973c65c6049fb4fe3dfc49fe3a1 100644 (file)
@@ -967,7 +967,6 @@ lstcon_batch_info(char *name, lstcon_test_batch_ent_t __user *ent_up,
                entp->u.tbe_batch.bae_state = bat->bat_state;
 
        } else {
-
                entp->u.tbe_test.tse_type   = test->tes_type;
                entp->u.tbe_test.tse_loop   = test->tes_loop;
                entp->u.tbe_test.tse_concur = test->tes_concur;