IB/qib: Fix style issues
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Wed, 9 Nov 2011 18:35:55 +0000 (13:35 -0500)
committerRoland Dreier <roland@purestorage.com>
Wed, 4 Jan 2012 04:51:42 +0000 (20:51 -0800)
More style issues revealed with checkpatch.pl -f.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_driver.c
drivers/infiniband/hw/qib/qib_init.c
drivers/infiniband/hw/qib/qib_sd7220.c
drivers/infiniband/hw/qib/qib_sysfs.c

index c90a55f4120fe6b23972a4762b6c0d9ee0e27872..6fc9365ba8a6032225e953f5bc4e2203390afcc4 100644 (file)
@@ -371,9 +371,8 @@ static u32 qib_rcv_hdrerr(struct qib_ctxtdata *rcd, struct qib_pportdata *ppd,
                                                lnh == QIB_LRH_GRH,
                                                qp,
                                                be32_to_cpu(ohdr->bth[0]));
-                               if (ruc_res) {
+                               if (ruc_res)
                                        goto unlock;
-                               }
 
                                /* Only deal with RDMA Writes for now */
                                if (opcode <
index 58b0f8ad4a2936aed396da2b10361f080d74197a..cf0cd30adc8d07667956eb1244cd2b06f9e00cf1 100644 (file)
@@ -1015,7 +1015,7 @@ static int __devinit qib_init_one(struct pci_dev *,
 #define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: "
 #define PFX QIB_DRV_NAME ": "
 
-static const struct pci_device_id qib_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(qib_pci_tbl) = {
        { PCI_DEVICE(PCI_VENDOR_ID_PATHSCALE, PCI_DEVICE_ID_QLOGIC_IB_6120) },
        { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7220) },
        { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7322) },
index de1a4b2f33c084aee485b5ea6454702ea78455d9..ac065dd6b693b91360da99a65cef1571eb1ea679 100644 (file)
@@ -300,7 +300,7 @@ bail:
 }
 
 static void qib_sd_trimdone_monitor(struct qib_devdata *dd,
-       const char *where)
+       const char *where)
 {
        int ret, chn, baduns;
        u64 val;
index 78fbd56879d417610fc4b88dd4898741b56843d3..dae51604cfcd24f287790467892d9960884905e0 100644 (file)
@@ -150,7 +150,7 @@ static ssize_t show_status(struct qib_pportdata *ppd, char *buf)
  * For userland compatibility, these offsets must remain fixed.
  * They are strings for QIB_STATUS_*
  */
-static const char *qib_status_str[] = {
+static const char * const qib_status_str[] = {
        "Initted",
        "",
        "",