aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>2011-11-09 13:35:55 -0500
committerRoland Dreier <roland@purestorage.com>2012-01-03 23:51:42 -0500
commit865b64be86ed6e3e6137ce6506f31051097bf9cb (patch)
treed56ef5df8391d2304f2daf9cf02fba395f616fd7 /drivers/infiniband
parent5f0a6e2d503896062f641639dacfe5055c2f593b (diff)
IB/qib: Fix style issues
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/qib/qib_driver.c3
-rw-r--r--drivers/infiniband/hw/qib/qib_init.c2
-rw-r--r--drivers/infiniband/hw/qib/qib_sd7220.c2
-rw-r--r--drivers/infiniband/hw/qib/qib_sysfs.c2
4 files changed, 4 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/qib/qib_driver.c b/drivers/infiniband/hw/qib/qib_driver.c
index c90a55f4120f..6fc9365ba8a6 100644
--- a/drivers/infiniband/hw/qib/qib_driver.c
+++ b/drivers/infiniband/hw/qib/qib_driver.c
@@ -371,9 +371,8 @@ static u32 qib_rcv_hdrerr(struct qib_ctxtdata *rcd, struct qib_pportdata *ppd,
371 lnh == QIB_LRH_GRH, 371 lnh == QIB_LRH_GRH,
372 qp, 372 qp,
373 be32_to_cpu(ohdr->bth[0])); 373 be32_to_cpu(ohdr->bth[0]));
374 if (ruc_res) { 374 if (ruc_res)
375 goto unlock; 375 goto unlock;
376 }
377 376
378 /* Only deal with RDMA Writes for now */ 377 /* Only deal with RDMA Writes for now */
379 if (opcode < 378 if (opcode <
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c
index 58b0f8ad4a29..cf0cd30adc8d 100644
--- a/drivers/infiniband/hw/qib/qib_init.c
+++ b/drivers/infiniband/hw/qib/qib_init.c
@@ -1015,7 +1015,7 @@ static int __devinit qib_init_one(struct pci_dev *,
1015#define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: " 1015#define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: "
1016#define PFX QIB_DRV_NAME ": " 1016#define PFX QIB_DRV_NAME ": "
1017 1017
1018static const struct pci_device_id qib_pci_tbl[] = { 1018static DEFINE_PCI_DEVICE_TABLE(qib_pci_tbl) = {
1019 { PCI_DEVICE(PCI_VENDOR_ID_PATHSCALE, PCI_DEVICE_ID_QLOGIC_IB_6120) }, 1019 { PCI_DEVICE(PCI_VENDOR_ID_PATHSCALE, PCI_DEVICE_ID_QLOGIC_IB_6120) },
1020 { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7220) }, 1020 { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7220) },
1021 { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7322) }, 1021 { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_IB_7322) },
diff --git a/drivers/infiniband/hw/qib/qib_sd7220.c b/drivers/infiniband/hw/qib/qib_sd7220.c
index de1a4b2f33c0..ac065dd6b693 100644
--- a/drivers/infiniband/hw/qib/qib_sd7220.c
+++ b/drivers/infiniband/hw/qib/qib_sd7220.c
@@ -300,7 +300,7 @@ bail:
300} 300}
301 301
302static void qib_sd_trimdone_monitor(struct qib_devdata *dd, 302static void qib_sd_trimdone_monitor(struct qib_devdata *dd,
303 const char *where) 303 const char *where)
304{ 304{
305 int ret, chn, baduns; 305 int ret, chn, baduns;
306 u64 val; 306 u64 val;
diff --git a/drivers/infiniband/hw/qib/qib_sysfs.c b/drivers/infiniband/hw/qib/qib_sysfs.c
index 78fbd56879d4..dae51604cfcd 100644
--- a/drivers/infiniband/hw/qib/qib_sysfs.c
+++ b/drivers/infiniband/hw/qib/qib_sysfs.c
@@ -150,7 +150,7 @@ static ssize_t show_status(struct qib_pportdata *ppd, char *buf)
150 * For userland compatibility, these offsets must remain fixed. 150 * For userland compatibility, these offsets must remain fixed.
151 * They are strings for QIB_STATUS_* 151 * They are strings for QIB_STATUS_*
152 */ 152 */
153static const char *qib_status_str[] = { 153static const char * const qib_status_str[] = {
154 "Initted", 154 "Initted",
155 "", 155 "",
156 "", 156 "",