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
This commit is contained in:
Bart Van Assche
2019-05-07 02:41:22 +00:00
parent 0ed0d35395
commit 3ab9bc61b7
2 changed files with 5 additions and 5 deletions
@@ -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;
+1 -1
View File
@@ -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