From 2dd1d93762d858d7c874d3a9568e9ccb3daef399 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 2 Dec 2011 02:26:29 +0000 Subject: [PATCH] Remove a superfluous pair of braces since checkpatch complains about these. BSD-signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3946 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 19b6ccd94..3ba33b1e6 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -2580,16 +2580,14 @@ static void q2x_init_ctio_ret_entry(ctio_ret_entry_t *ctio_m1, ctio_m1->flags = cpu_to_le16(OF_SSTS | OF_FAST_POST | OF_NO_DATA | OF_SS_MODE_1); ctio_m1->flags |= cpu_to_le16(OF_INC_RC); - if (q2t_need_explicit_conf(prm->tgt->ha, prm->cmd, 0)) { + if (q2t_need_explicit_conf(prm->tgt->ha, prm->cmd, 0)) ctio_m1->flags |= cpu_to_le16(OF_EXPL_CONF | OF_CONF_REQ); - } + ctio_m1->scsi_status = cpu_to_le16(prm->rq_result); ctio_m1->residual = cpu_to_le32(prm->residual); if (SCST_SENSE_VALID(prm->sense_buffer)) { - if (q2t_need_explicit_conf(prm->tgt->ha, prm->cmd, 1)) { - ctio_m1->flags |= cpu_to_le16(OF_EXPL_CONF | - OF_CONF_REQ); - } + if (q2t_need_explicit_conf(prm->tgt->ha, prm->cmd, 1)) + ctio_m1->flags |= cpu_to_le16(OF_EXPL_CONF | OF_CONF_REQ); ctio_m1->scsi_status |= cpu_to_le16(SS_SENSE_LEN_VALID); ctio_m1->sense_length = cpu_to_le16(prm->sense_buffer_len); memcpy(ctio_m1->sense_data, prm->sense_buffer,