]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/rdma/hfi1: Remove multiple blank lines
authorJubin John <jubin.john@intel.com>
Mon, 15 Feb 2016 04:19:32 +0000 (20:19 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:36 +0000 (20:45 -0500)
Remove multiple blank lines to fix checkpatch check:
CHECK: Please don't use multiple blank lines

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
18 files changed:
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/debugfs.c
drivers/staging/rdma/hfi1/file_ops.c
drivers/staging/rdma/hfi1/hfi.h
drivers/staging/rdma/hfi1/init.c
drivers/staging/rdma/hfi1/intr.c
drivers/staging/rdma/hfi1/mad.c
drivers/staging/rdma/hfi1/mad.h
drivers/staging/rdma/hfi1/pcie.c
drivers/staging/rdma/hfi1/pio.c
drivers/staging/rdma/hfi1/pio.h
drivers/staging/rdma/hfi1/sdma.c
drivers/staging/rdma/hfi1/sdma.h
drivers/staging/rdma/hfi1/sysfs.c
drivers/staging/rdma/hfi1/trace.h
drivers/staging/rdma/hfi1/twsi.h
drivers/staging/rdma/hfi1/ud.c
drivers/staging/rdma/hfi1/verbs.c

index 79c215e4d2a0557448ec9836d97af7c1b62a9cc1..0a593bdf1761a698e372787a3d078cfe85bbdca9 100644 (file)
@@ -986,7 +986,6 @@ static struct flag_table dc8051_info_host_msg_flags[] = {
        FLAG_ENTRY0("Link going down", 0x0100),
 };
 
-
 static u32 encoded_size(u32 size);
 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate);
 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state);
@@ -1285,7 +1284,6 @@ static inline u64 read_write_csr(const struct hfi1_devdata *dd, u32 csr,
 {
        u64 ret;
 
-
        if (mode == CNTR_MODE_R) {
                ret = read_csr(dd, csr);
        } else if (mode == CNTR_MODE_W) {
@@ -10748,7 +10746,6 @@ int set_buffer_control(struct hfi1_pportdata *ppd,
 #define valid_vl(idx) ((idx) < TXE_NUM_DATA_VL || (idx) == 15)
 #define NUM_USABLE_VLS 16      /* look at VL15 and less */
 
-
        /* find the new total credits, do sanity check on unused VLs */
        for (i = 0; i < OPA_MAX_VLS; i++) {
                if (valid_vl(i)) {
@@ -11891,7 +11888,6 @@ static int init_cntrs(struct hfi1_devdata *dd)
        if (!dd->scntrs)
                goto bail;
 
-
        /* allocate space for the counter names */
        dd->cntrnameslen = sz;
        dd->cntrnames = kmalloc(sz, GFP_KERNEL);
@@ -12060,7 +12056,6 @@ bail:
        return -ENOMEM;
 }
 
-
 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate)
 {
        switch (chip_lstate) {
@@ -14282,7 +14277,6 @@ static u16 delay_cycles(struct hfi1_pportdata *ppd, u32 desired_egress_rate,
        return (u16)delta_cycles;
 }
 
-
 /**
  * create_pbc - build a pbc for transmission
  * @flags: special case flags or-ed in built pbc
index 0ee7217507d2f7f9a137d79f76aad0cfbc5201cb..7cb43488d79647a323b7ecd49cf62ca5bbe072d2 100644 (file)
@@ -102,7 +102,6 @@ do { \
                pr_warn("create of %s failed\n", name); \
 } while (0)
 
-
 #define DEBUGFS_SEQ_FILE_CREATE(name, parent, data) \
        DEBUGFS_FILE_CREATE(#name, parent, data, &_##name##_file_ops, S_IRUGO)
 
@@ -127,7 +126,6 @@ static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos)
        return pos;
 }
 
-
 static void _opcode_stats_seq_stop(struct seq_file *s, void *v)
 __releases(RCU)
 {
@@ -308,7 +306,6 @@ static void *_sdes_seq_next(struct seq_file *s, void *v, loff_t *pos)
        return pos;
 }
 
-
 static void _sdes_seq_stop(struct seq_file *s, void *v)
 __releases(RCU)
 {
index cc681f7bc5705a80d0d3808a1c163484d843d75b..b52cb78c1f450be173007f339c182398a1290e89 100644 (file)
@@ -162,7 +162,6 @@ enum mmap_types {
 #define dbg(fmt, ...)                          \
        pr_info(fmt, ##__VA_ARGS__)
 
-
 static inline int is_valid_mmap(u64 token)
 {
        return (HFI1_MMAP_TOKEN_GET(MAGIC, token) == HFI1_MMAP_MAGIC);
@@ -1589,7 +1588,6 @@ static loff_t ui_lseek(struct file *filp, loff_t offset, int whence)
        return filp->f_pos;
 }
 
-
 /* NOTE: assumes unsigned long is 8 bytes */
 static ssize_t ui_read(struct file *filp, char __user *buf, size_t count,
                        loff_t *f_pos)
index 70decdf41b21447fc1984688e26d5a0fb85e2cb8..347ceca5f361235c1880431eb444b998ece3be48 100644 (file)
@@ -878,7 +878,6 @@ struct hfi1_devdata {
        wait_queue_head_t                 sdma_unfreeze_wq;
        atomic_t                          sdma_unfreeze_count;
 
-
        /* hfi1_pportdata, points to array of (physical) port-specific
         * data structs, indexed by pidx (0..n-1)
         */
@@ -1598,7 +1597,6 @@ static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd)
 /* IB dword length mask in PBC (lower 11 bits); same for all chips */
 #define HFI1_PBC_LENGTH_MASK                     ((1 << 11) - 1)
 
-
 /* ctxt_flag bit offsets */
                /* context has been setup */
 #define HFI1_CTXT_SETUP_DONE 1
index 423c6996e93c7e77a32991e4a3af839d7310d363..3071fbce37f75a829bdc414ffc820141867a617d 100644 (file)
@@ -1723,7 +1723,6 @@ int hfi1_setup_eagerbufs(struct hfi1_ctxtdata *rcd)
                  rcd->ctxt, rcd->egrbufs.alloced, rcd->egrbufs.rcvtid_size,
                  rcd->egrbufs.size);
 
-
        /*
         * Set the contexts rcv array head update threshold to the closest
         * power of 2 (so we can use a mask instead of modulo) below half
index 5e6d77de0707550456ef05ba7bd38cb2d73ccf8d..9a9b331cc4695fb5bfba5acb4be7b689414fa879 100644 (file)
@@ -179,7 +179,6 @@ void handle_linkup_change(struct hfi1_devdata *dd, u32 linkup)
                signal_ib_event(ppd, ev);
        }
 
-
 }
 
 /*
index 1a9eb502f2889d71a233d9618000b28897c244d5..b687e3f2d96356af824a6a739393b90e9a8981dc 100644 (file)
@@ -2310,7 +2310,6 @@ static void a0_portstatus(struct hfi1_pportdata *ppd,
        }
 }
 
-
 static int pma_get_opa_portstatus(struct opa_pma_mad *pmp,
                        struct ib_device *ibdev, u8 port, u32 *resp_len)
 {
index b6c88be4ee4cde2b34e04a63ca33bbd58fbcc6a2..f9e93c035d28740e0362b08097883b4d74e9ad3f 100644 (file)
@@ -235,7 +235,6 @@ struct ib_pma_portcounters_cong {
 #define IB_CC_SVCTYPE_RD 0x2
 #define IB_CC_SVCTYPE_UD 0x3
 
-
 /*
  * There should be an equivalent IB #define for the following, but
  * I cannot find it.
index 019b4f83d2bd5a443a200f69003f51179af07c3b..26eb610d73b48c26a72a056c7445a3a4b0ea72fc 100644 (file)
@@ -447,7 +447,6 @@ void restore_pci_variables(struct hfi1_devdata *dd)
        pci_write_config_dword(dd->pcidev, PCIE_CFG_TPH2, dd->pci_tph2);
 }
 
-
 /*
  * BIOS may not set PCIe bus-utilization parameters for best performance.
  * Check and optionally adjust them to maximize our throughput.
index 9bafedfe48f84a2f7f06db61f5d48bd831048518..f1f30b37142579af064c7a8b9962e11fdda18e9a 100644 (file)
@@ -852,7 +852,6 @@ struct send_context *sc_alloc(struct hfi1_devdata *dd, int type,
                  sc->credit_ctrl,
                  thresh);
 
-
        return sc;
 }
 
index 1dedeb2505488f5a5d56ceaa10dd494a6be19d75..8d0cf1bf3f1b6a1d1b45ca425cb75c39b0495136 100644 (file)
@@ -50,7 +50,6 @@
  *
  */
 
-
 /* send context types */
 #define SC_KERNEL 0
 #define SC_ACK    1
@@ -318,7 +317,6 @@ void pio_kernel_unfreeze(struct hfi1_devdata *dd);
 void __cm_reset(struct hfi1_devdata *dd, u64 sendctrl);
 void pio_send_control(struct hfi1_devdata *dd, int op);
 
-
 /* PIO copy routines */
 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc,
              const void *from, size_t count);
index 39539355070074a8c84295860c157f7234095dde..cc21272f878a9039eda157c715dfa4c1eb6f298b 100644 (file)
@@ -609,7 +609,6 @@ static void sdma_sw_clean_up_task(unsigned long opaque)
         *   descq are ours to play with.
         */
 
-
        /*
         * In the error clean up sequence, software clean must be called
         * before the hardware clean so we can use the hardware head in
@@ -1690,7 +1689,6 @@ static void set_sdma_integrity(struct sdma_engine *sde)
        write_sde_csr(sde, SD(CHECK_ENABLE), reg);
 }
 
-
 static void init_sdma_regs(
        struct sdma_engine *sde,
        u32 credits,
index c106d3c5b06fc769ebef6d4cf9c7d57078a326bb..cc01e818b1a9efd4cb08b0223af6fc03afdd3013 100644 (file)
@@ -65,7 +65,6 @@
 /* Hardware limit for SDMA packet size */
 #define MAX_SDMA_PKT_SIZE ((16 * 1024) - 1)
 
-
 #define SDMA_TXREQ_S_OK        0
 #define SDMA_TXREQ_S_SENDERROR 1
 #define SDMA_TXREQ_S_ABORTED   2
@@ -418,7 +417,6 @@ struct sdma_engine {
        struct list_head flushlist;
 };
 
-
 int sdma_init(struct hfi1_devdata *dd, u8 port);
 void sdma_start(struct hfi1_devdata *dd);
 void sdma_exit(struct hfi1_devdata *dd);
@@ -464,7 +462,6 @@ static inline int __sdma_running(struct sdma_engine *engine)
        return engine->state.current_state == sdma_state_s99_running;
 }
 
-
 /**
  * sdma_running() - state suitability test
  * @engine: sdma engine
@@ -494,7 +491,6 @@ void _sdma_txreq_ahgadd(
        u32 *ahg,
        u8 ahg_hlen);
 
-
 /**
  * sdma_txinit_ahg() - initialize an sdma_txreq struct with AHG
  * @tx: tx request to initialize
index f1d47e7f31d27842e157ba05fc708b140f2242eb..1f3a747ce6666092ca9e43f831f975fcc9d2fa45 100644 (file)
@@ -53,7 +53,6 @@
 #include "mad.h"
 #include "trace.h"
 
-
 /*
  * Start of per-port congestion control structures and support code
  */
@@ -254,7 +253,6 @@ HFI1_SC2VL_ATTR(29);
 HFI1_SC2VL_ATTR(30);
 HFI1_SC2VL_ATTR(31);
 
-
 static struct attribute *sc2vl_default_attributes[] = {
        &hfi1_sc2vl_attr_0.attr,
        &hfi1_sc2vl_attr_1.attr,
@@ -360,7 +358,6 @@ HFI1_SL2SC_ATTR(29);
 HFI1_SL2SC_ATTR(30);
 HFI1_SL2SC_ATTR(31);
 
-
 static struct attribute *sl2sc_default_attributes[] = {
        &hfi1_sl2sc_attr_0.attr,
        &hfi1_sl2sc_attr_1.attr,
@@ -493,7 +490,6 @@ static struct kobj_type hfi1_vl2mtu_ktype = {
        .default_attrs = vl2mtu_default_attributes
 };
 
-
 /* end of per-port file structures and support code */
 
 /*
@@ -535,7 +531,6 @@ static ssize_t show_boardversion(struct device *device,
        return scnprintf(buf, PAGE_SIZE, "%s", dd->boardversion);
 }
 
-
 static ssize_t show_nctxts(struct device *device,
                           struct device_attribute *attr, char *buf)
 {
@@ -702,7 +697,6 @@ int hfi1_create_port_files(struct ib_device *ibdev, u8 port_num,
        }
        kobject_uevent(&ppd->vl2mtu_kobj, KOBJ_ADD);
 
-
        ret = kobject_init_and_add(&ppd->pport_cc_kobj, &port_cc_ktype,
                                   kobj, "CCMgtA");
        if (ret) {
index fcae96e5b7845a4d533335285e985a99e4f1db24..a13215ffddddae0d77eb6e2b90eb9671d37ebdc4 100644 (file)
@@ -380,7 +380,6 @@ const char *parse_sdma_flags(
 
 #define __parse_sdma_flags(desc0, desc1) parse_sdma_flags(p, desc0, desc1)
 
-
 #define lrh_name(lrh) { HFI1_##lrh, #lrh }
 #define show_lnh(lrh)                    \
 __print_symbolic(lrh,                    \
@@ -427,7 +426,6 @@ __print_symbolic(opcode,                                   \
        ib_opcode_name(UD_SEND_ONLY_WITH_IMMEDIATE),       \
        ib_opcode_name(CNP))
 
-
 #define LRH_PRN "vl %d lver %d sl %d lnh %d,%s dlid %.4x len %d slid %.4x"
 #define BTH_PRN \
        "op 0x%.2x,%s se %d m %d pad %d tver %d pkey 0x%.4x " \
@@ -563,7 +561,6 @@ DEFINE_EVENT(hfi1_ibhdr_template, output_ibhdr,
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM hfi1_snoop
 
-
 TRACE_EVENT(snoop_capture,
        TP_PROTO(struct hfi1_devdata *dd,
                 int hdr_len,
@@ -760,7 +757,6 @@ DECLARE_EVENT_CLASS(hfi1_bct_template,
        )
 );
 
-
 DEFINE_EVENT(hfi1_bct_template, bct_set,
             TP_PROTO(struct hfi1_devdata *dd, struct buffer_control *bc),
             TP_ARGS(dd, bc));
index 6cb30e59b00f755fd00417c60603e4304b21e108..0722ac83e7dd4cc249a2c3265230c122c89cdad6 100644 (file)
@@ -65,5 +65,4 @@ int hfi1_twsi_blk_rd(struct hfi1_devdata *dd, u32 target, int dev, int addr,
 int hfi1_twsi_blk_wr(struct hfi1_devdata *dd, u32 target, int dev, int addr,
                     const void *buffer, int len);
 
-
 #endif /* _TWSI_H */
index da4e465ae8461442d1bc5520aeb924752f8d446a..5779f3a820aba35d4c780c3728c3960fb43106de 100644 (file)
@@ -647,7 +647,6 @@ static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5,
        return 0;
 }
 
-
 /**
  * hfi1_ud_rcv - receive an incoming UD packet
  * @ibp: the port the packet came in on
index acf1132951e30e3ae478c179ccda40b602e739db..466055bd510782258e69500ade8208c3b3ba3ea7 100644 (file)
@@ -376,7 +376,6 @@ dropit:
        return 0;
 }
 
-
 /**
  * hfi1_ib_rcv - process an incoming packet
  * @packet: data packet information
@@ -965,7 +964,6 @@ static inline int egress_pkey_check(struct hfi1_pportdata *ppd,
        if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK))
                goto bad;
 
-
        /* Is the pkey = 0x0, or 0x8000? */
        if ((pkey & PKEY_LOW_15_MASK) == 0)
                goto bad;