From a6d7968bd9a84fc81c39191caacfd31f19dcc653 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 2 Aug 2018 04:27:58 +0000 Subject: [PATCH] qla2x00t: Avoid that checkpatch complains that (foo*) should be (foo *) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7452 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_bsg.c | 4 ++-- qla2x00t/qla_gbl.h | 2 +- qla2x00t/qla_init.c | 4 ++-- qla2x00t/qla_isr.c | 8 ++++---- qla2x00t/qla_os.c | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/qla2x00t/qla_bsg.c b/qla2x00t/qla_bsg.c index 7975a08e8..140590533 100644 --- a/qla2x00t/qla_bsg.c +++ b/qla2x00t/qla_bsg.c @@ -61,7 +61,7 @@ static inline void bsg_job_done_backport(struct fc_bsg_job *job, int result, void qla2x00_bsg_job_done(void *data, void *ptr, int res) { - srb_t *sp = (srb_t*)ptr; + srb_t *sp = ptr; struct scsi_qla_host *vha = (scsi_qla_host_t *)data; #ifndef NEW_LIBFC_API struct fc_bsg_job *bsg_job = sp->u.bsg_job; @@ -78,7 +78,7 @@ qla2x00_bsg_job_done(void *data, void *ptr, int res) void qla2x00_bsg_sp_free(void *data, void *ptr) { - srb_t *sp = (srb_t*)ptr; + srb_t *sp = ptr; struct scsi_qla_host *vha = (scsi_qla_host_t *)data; #ifndef NEW_LIBFC_API struct fc_bsg_job *bsg_job = sp->u.bsg_job; diff --git a/qla2x00t/qla_gbl.h b/qla2x00t/qla_gbl.h index 2f7a40bbd..b0460827c 100644 --- a/qla2x00t/qla_gbl.h +++ b/qla2x00t/qla_gbl.h @@ -401,7 +401,7 @@ extern int qla2x00_request_irqs(struct qla_hw_data *, struct rsp_que *); extern void qla2x00_free_irqs(scsi_qla_host_t *); extern int qla2x00_get_data_rate(scsi_qla_host_t *); -extern char* qla2x00_get_link_speed_str(struct qla_hw_data *); +extern char *qla2x00_get_link_speed_str(struct qla_hw_data *); /* * Global Function Prototypes in qla_sup.c source file. diff --git a/qla2x00t/qla_init.c b/qla2x00t/qla_init.c index b8695f06e..209340d85 100644 --- a/qla2x00t/qla_init.c +++ b/qla2x00t/qla_init.c @@ -122,7 +122,7 @@ qla2x00_async_iocb_timeout(void *data) static void qla2x00_async_login_sp_done(void *data, void *ptr, int res) { - srb_t *sp = (srb_t*)ptr; + srb_t *sp = ptr; struct srb_iocb *lio = &sp->u.iocb_cmd; struct scsi_qla_host *vha = (scsi_qla_host_t *)data; @@ -272,7 +272,7 @@ done: static void qla2x00_async_tm_cmd_done(void *data, void *ptr, int res) { - srb_t *sp = (srb_t*)ptr; + srb_t *sp = ptr; struct srb_iocb *iocb = &sp->u.iocb_cmd; struct scsi_qla_host *vha = (scsi_qla_host_t *)data; uint32_t flags; diff --git a/qla2x00t/qla_isr.c b/qla2x00t/qla_isr.c index 7605a3a5d..08bcbae72 100644 --- a/qla2x00t/qla_isr.c +++ b/qla2x00t/qla_isr.c @@ -1174,7 +1174,7 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req, #endif uint16_t comp_status; uint32_t fw_status[3]; - uint8_t* fw_sts_ptr; + uint8_t *fw_sts_ptr; sp = qla2x00_get_sp_from_handle(vha, func, req, pkt); if (!sp) @@ -1200,8 +1200,8 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req, } comp_status = fw_status[0] = le16_to_cpu(pkt->comp_status); - fw_status[1] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_1); - fw_status[2] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_2); + fw_status[1] = le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->error_subcode_1); + fw_status[2] = le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->error_subcode_2); /* return FC_CTELS_STATUS_OK and leave the decoding of the ELS/CT * fc payload to the caller @@ -1220,7 +1220,7 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req, #else bsg_reply->reply_payload_rcv_len = #endif - le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->total_byte_count); + le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->total_byte_count); ql_dbg(ql_dbg_user, vha, 0x503f, "ELS-CT pass-through-%s error hdl=%x comp_status-status=0x%x " diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index defe0aba7..232cbee04 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -672,7 +672,7 @@ static void qla2x00_sp_compl(void *data, void *ptr, int res) { struct qla_hw_data *ha = (struct qla_hw_data *)data; - srb_t *sp = (srb_t*)ptr; + srb_t *sp = ptr; struct scsi_cmnd *cmd = GET_CMD_SP(sp); cmd->result = res;