From 3ab9bc61b7b604f8b23a21a40f065736860df9f8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 7 May 2019 02:41:22 +0000 Subject: [PATCH] qla2x00t-32gbit: Make the pointer notation conform with the Linux kernel coding style git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8352 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c | 8 ++++---- qla2x00t-32gbit/qla_os.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c index a9bdf3b2f..2713f596e 100644 --- a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c +++ b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c @@ -355,7 +355,7 @@ static void sqa_qla2xxx_rel_cmd(struct qla_tgt_cmd *cmd) static struct qla_tgt_cmd *sqa_qla2xxx_get_cmd(struct fc_port *sess) { struct sqa_scst_tgt *sqa_tgt = - (struct sqa_scst_tgt*)sess->vha->vha_tgt.target_lport_ptr; + (struct sqa_scst_tgt *)sess->vha->vha_tgt.target_lport_ptr; struct qla_tgt_cmd *cmd; int tag = -ENOENT; @@ -1501,7 +1501,7 @@ static int sqa_xmit_response(struct scst_cmd *scst_cmd) EXTRACHECKS_BUG_ON(scst_cmd_atomic(scst_cmd)); #endif if (is_send_status) { - const u8* const sense_buf = scst_cmd_get_sense_buffer(scst_cmd); + const u8 *const sense_buf = scst_cmd_get_sense_buffer(scst_cmd); u16 len = scst_cmd_get_sense_buffer_len(scst_cmd); xmit_type |= QLA_TGT_XMIT_STATUS; @@ -1818,7 +1818,7 @@ static void sqa_cleanup_hw_pending_cmd(scsi_qla_host_t *vha, struct qla_qpair *qpair = cmd->qpair; for (h = 1; h < qpair->req->num_outstanding_cmds; h++) { - if (qpair->req->outstanding_cmds[h] == (srb_t*)cmd) { + if (qpair->req->outstanding_cmds[h] == (srb_t *)cmd) { printk(KERN_INFO "Clearing handle %d for cmd %p", h, cmd); //TRACE_DBG("Clearing handle %d for cmd %p", h, cmd); qpair->req->outstanding_cmds[h] = NULL; @@ -1912,7 +1912,7 @@ static struct qla_tgt_func_tmpl sqa_qla2xxx_template = { }; static int sqa_lport_callback(struct scsi_qla_host *vha, - void* target_lport_ptr, u64 npiv_wwpn, u64 npiv_wwnn) + void *target_lport_ptr, u64 npiv_wwpn, u64 npiv_wwnn) { struct qla_hw_data *ha = vha->hw; diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 414641ddb..3ced38e91 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -1258,7 +1258,7 @@ sp_get(struct srb *sp) else return 0; #else - if (!refcount_inc_not_zero((refcount_t*)&sp->ref_count)) + if (!refcount_inc_not_zero((refcount_t *)&sp->ref_count)) /* kref get fail */ return ENXIO; else