staging/rdma/hfi1: Add space between concatenated string elements
authorJubin John <jubin.john@intel.com>
Tue, 17 Nov 2015 02:59:27 +0000 (21:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:45:29 +0000 (13:45 -0800)
Space between concantenated string elements is more human
readable and fixes the checkpatch issue:
CHECK: Concatenated strings should use spaces between elements

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/driver.c

index 0817776d35285ae75d4716af369e1ed00854f59a..f89f38d8a2b7fca1f1a4fb1d9ba54ac8f48deb05 100644 (file)
@@ -8903,8 +8903,8 @@ static int request_intx_irq(struct hfi1_devdata *dd)
 {
        int ret;
 
-       snprintf(dd->intx_name, sizeof(dd->intx_name), DRIVER_NAME"_%d",
-               dd->unit);
+       snprintf(dd->intx_name, sizeof(dd->intx_name), DRIVER_NAME "_%d",
+                dd->unit);
        ret = request_irq(dd->pcidev->irq, general_interrupt,
                                  IRQF_SHARED, dd->intx_name, dd);
        if (ret)
@@ -9003,7 +9003,7 @@ static int request_msix_irqs(struct hfi1_devdata *dd)
                        handler = general_interrupt;
                        arg = dd;
                        snprintf(me->name, sizeof(me->name),
-                               DRIVER_NAME"_%d", dd->unit);
+                                DRIVER_NAME "_%d", dd->unit);
                        err_info = "general";
                } else if (first_sdma <= i && i < last_sdma) {
                        idx = i - first_sdma;
@@ -9011,7 +9011,7 @@ static int request_msix_irqs(struct hfi1_devdata *dd)
                        handler = sdma_interrupt;
                        arg = sde;
                        snprintf(me->name, sizeof(me->name),
-                               DRIVER_NAME"_%d sdma%d", dd->unit, idx);
+                                DRIVER_NAME "_%d sdma%d", dd->unit, idx);
                        err_info = "sdma";
                        remap_sdma_interrupts(dd, idx, i);
                } else if (first_rx <= i && i < last_rx) {
@@ -9031,7 +9031,7 @@ static int request_msix_irqs(struct hfi1_devdata *dd)
                        thread = receive_context_thread;
                        arg = rcd;
                        snprintf(me->name, sizeof(me->name),
-                               DRIVER_NAME"_%d kctxt%d", dd->unit, idx);
+                                DRIVER_NAME "_%d kctxt%d", dd->unit, idx);
                        err_info = "receive context";
                        remap_intr(dd, IS_RCVAVAIL_START + idx, i);
                } else {
index 4c52e785de68eefa48e2132a9a46ae93ea41db71..745817ea42e24fa7e6ad78c9ccd508611cd11e2b 100644 (file)
@@ -158,7 +158,7 @@ const char *get_unit_name(int unit)
 {
        static char iname[16];
 
-       snprintf(iname, sizeof(iname), DRIVER_NAME"_%u", unit);
+       snprintf(iname, sizeof(iname), DRIVER_NAME "_%u", unit);
        return iname;
 }