Fixed the following checkpatch complaints:
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 3 Oct 2009 13:12:18 +0000 (13:12 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 3 Oct 2009 13:12:18 +0000 (13:12 +0000)
- ERROR: space required before the open parenthesis '('
- ERROR: "(foo*)" should be "(foo *)"
- ERROR: "foo * bar" should be "foo *bar"
- ERROR: code indent should use tabs where possible
Verified that the output of svn diff -x -w is empty for this commit.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1171 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla_attr.c
qla2x00t/qla_init.c
qla2x00t/qla_isr.c

index 439eef1..e6c8ab7 100644 (file)
@@ -221,8 +221,8 @@ qla2x00_show_resource_counts(struct device *dev,
        mc.mb[0] = MBC_GET_RESOURCE_COUNTS;
        mc.out_mb = MBX_0;
        mc.in_mb = MBX_0|MBX_1|MBX_2;
-        mc.tov = 30;
-        mc.flags = 0;
+       mc.tov = 30;
+       mc.flags = 0;
 
        rval = qla2x00_mailbox_command(ha, &mc);
 
@@ -263,8 +263,8 @@ qla2x00_show_port_database(struct device *dev,
        port_data_t *pmap;
        ulong dma_size = 0x100*sizeof(*pmap);
 
-       pmap = (port_data_t*)dma_alloc_coherent(&ha->pdev->dev, dma_size,
-                                               &pmap_dma, GFP_KERNEL);
+       pmap = (port_data_t *)dma_alloc_coherent(&ha->pdev->dev, dma_size,
+                                                &pmap_dma, GFP_KERNEL);
        if (pmap == NULL) {
                size = scnprintf(buffer, max_size, "DMA Alloc failed of %ld",
                                dma_size);
@@ -280,8 +280,8 @@ qla2x00_show_port_database(struct device *dev,
        mc.mb[8] = 0xFF;
        mc.out_mb = MBX_0|MBX_1|MBX_2|MBX_3|MBX_6|MBX_7;
        mc.in_mb = MBX_0|MBX_1;
-        mc.tov = 30;
-        mc.flags = MBX_DMA_IN;
+       mc.tov = 30;
+       mc.flags = MBX_DMA_IN;
 
        rval = qla2x00_mailbox_command(ha, &mc);
 
@@ -371,7 +371,7 @@ out_free_id_list:
 out_id_list_failed:
        if (size < max_size) {
                fc_port_t *fcport;
-               char * state;
+               char *state;
                char port_type[] = "URSBIT";
 
                size += scnprintf(buffer+size, max_size-size,
index 6e252f7..a6001cf 100644 (file)
@@ -4189,7 +4189,7 @@ int qla2x00_issue_marker(scsi_qla_host_t *ha, int ha_locked)
                        return (QLA_FUNCTION_FAILED);
        }
        ha->marker_needed = 0;
-        return (QLA_SUCCESS);
+       return (QLA_SUCCESS);
 }
 
 int qla2xxx_tgt_register_driver(struct qla_tgt_initiator *tgt_data,
index 604ab3e..77703f8 100644 (file)
@@ -593,7 +593,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb)
                                      ha->operating_mode,
                                      ha->current_topology));
                        if (qla_target.tgt_async_event)
-                               qla_target.tgt_async_event(mb[0], ha, mb);
+                               qla_target.tgt_async_event(mb[0], ha, mb);
 #endif
                        break;
                }
@@ -617,7 +617,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb)
                set_bit(LOCAL_LOOP_UPDATE, &ha->dpc_flags);
 #ifdef CONFIG_SCSI_QLA2XXX_TARGET
                if (qla_target.tgt_async_event)
-                        qla_target.tgt_async_event(mb[0], ha, mb);
+                       qla_target.tgt_async_event(mb[0], ha, mb);
 #endif
                break;
 
@@ -755,7 +755,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb)
        case MBA_LIP_RESET:             /* LIP reset occurred */
 #ifdef CONFIG_SCSI_QLA2XXX_TARGET
                if (qla_target.tgt_async_event)
-                        qla_target.tgt_async_event(mb[0], ha, mb);
+                       qla_target.tgt_async_event(mb[0], ha, mb);
 #endif
                break;
        }
@@ -912,14 +912,14 @@ qla2x00_process_response_queue(struct scsi_qla_host *ha)
                        qla2x00_error_entry(ha, pkt);
 #ifdef CONFIG_SCSI_QLA2XXX_TARGET
                        switch (pkt->entry_type) {
-                       case ACCEPT_TGT_IO_TYPE:
-                       case CONTINUE_TGT_IO_TYPE:
-                       case CTIO_A64_TYPE:
-                       case IMMED_NOTIFY_TYPE:
-                       case NOTIFY_ACK_TYPE:
-                       case ENABLE_LUN_TYPE:
-                       case MODIFY_LUN_TYPE:
-                               break;
+                       case ACCEPT_TGT_IO_TYPE:
+                       case CONTINUE_TGT_IO_TYPE:
+                       case CTIO_A64_TYPE:
+                       case IMMED_NOTIFY_TYPE:
+                       case NOTIFY_ACK_TYPE:
+                       case ENABLE_LUN_TYPE:
+                       case MODIFY_LUN_TYPE:
+                               break;
                        default:
                                ((response_t *)pkt)->signature = RESPONSE_PROCESSED;
                                wmb();
@@ -930,13 +930,13 @@ qla2x00_process_response_queue(struct scsi_qla_host *ha)
 
                switch (pkt->entry_type) {
 #ifdef CONFIG_SCSI_QLA2XXX_TARGET
-                case ACCEPT_TGT_IO_TYPE:
-                case CONTINUE_TGT_IO_TYPE:
-                case CTIO_A64_TYPE:
-                case IMMED_NOTIFY_TYPE:
-                case NOTIFY_ACK_TYPE:
-                case ENABLE_LUN_TYPE:
-                case MODIFY_LUN_TYPE:
+               case ACCEPT_TGT_IO_TYPE:
+               case CONTINUE_TGT_IO_TYPE:
+               case CTIO_A64_TYPE:
+               case IMMED_NOTIFY_TYPE:
+               case NOTIFY_ACK_TYPE:
+               case ENABLE_LUN_TYPE:
+               case MODIFY_LUN_TYPE:
                        DEBUG5(printk(KERN_WARNING
                                      "qla2x00_response_pkt: "
                                      "calling tgt_response_pkt %p "
@@ -945,7 +945,7 @@ qla2x00_process_response_queue(struct scsi_qla_host *ha)
                                      pkt->entry_type););
                        if (qla_target.tgt_response_pkt)
                                qla_target.tgt_response_pkt(ha,
-                                       (response_t*)pkt);
+                                       (response_t *)pkt);
                        break;
 #endif /* CONFIG_SCSI_QLA2XXX_TARGET */
                case STATUS_TYPE:
@@ -1457,7 +1457,7 @@ qla2x00_error_entry(scsi_qla_host_t *ha, sts_entry_t *pkt)
                pkt->entry_type);
        if (pkt->entry_status & RF_INV_E_ORDER) {
                qla_printk(KERN_ERR, ha, "%s: Invalid Entry Order:\n", __func__);
-               qla2x00_dump_buffer((void*)pkt, sizeof(*pkt));
+               qla2x00_dump_buffer((void *)pkt, sizeof(*pkt));
        } else if (pkt->entry_status & RF_INV_E_COUNT)
                qla_printk(KERN_ERR, ha, "%s: Invalid Entry Count\n", __func__);
        else if (pkt->entry_status & RF_INV_E_PARAM)
@@ -1574,9 +1574,9 @@ qla24xx_process_atio_queue(struct scsi_qla_host *ha)
                              pkt->entry_type, cnt););
 
                if (likely(qla_target.tgt24_atio_pkt))
-                       qla_target.tgt24_atio_pkt(ha, (atio7_entry_t*)pkt);
+                       qla_target.tgt24_atio_pkt(ha, (atio7_entry_t *)pkt);
 
-               for(i = 0; i < cnt; i++) {
+               for (i = 0; i < cnt; i++) {
                        ha->atio_ring_index++;
                        if (ha->atio_ring_index == ha->atio_q_length) {
                                ha->atio_ring_index = 0;
@@ -1633,7 +1633,7 @@ qla24xx_process_response_queue(struct scsi_qla_host *ha)
                        case ABTS_RESP_24XX:
                        case CTIO_TYPE7:
                        case NOTIFY_ACK_TYPE:
-                               break;
+                               break;
                        default:
                                ((response_t *)pkt)->signature = RESPONSE_PROCESSED;
                                wmb();
@@ -1669,7 +1669,7 @@ qla24xx_process_response_queue(struct scsi_qla_host *ha)
                                      pkt->entry_type););
                        if (qla_target.tgt_response_pkt)
                                qla_target.tgt_response_pkt(ha,
-                                       (response_t*)pkt);
+                                       (response_t *)pkt);
                        break;
 #endif /* CONFIG_SCSI_QLA2XXX_TARGET */
                case MARKER_TYPE: