fcst: Fix multiple checkpatch warnings

This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-03-11 03:50:11 +00:00
parent 41e8fe860c
commit 3f7216ce2a
3 changed files with 8 additions and 11 deletions

View File

@@ -259,8 +259,8 @@ int ft_send_response(struct scst_cmd *cmd)
error = FCST_INJ_SEND_ERR(lport->tt.seq_send(lport, fcmd->seq, fp));
#endif
if (error < 0) {
pr_err("Sending response for exchange with OX_ID %#x and RX_ID"
" %#x failed: %d\n", ep->oxid, ep->rxid, error);
pr_err("Sending response for exchange with OX_ID %#x and RX_ID %#x failed: %d\n",
ep->oxid, ep->rxid, error);
error = error == -ENOMEM ? SCST_TGT_RES_QUEUE_FULL :
SCST_TGT_RES_FATAL_ERROR;
goto err;

View File

@@ -110,8 +110,7 @@ int ft_send_read_data(struct scst_cmd *cmd)
while (remaining) {
if (!loop_limit) {
FT_ERR("hit loop limit. remaining %zx mem_len %zx "
"frame_len %zx tlen %zx\n",
FT_ERR("hit loop limit. remaining %zx mem_len %zx frame_len %zx tlen %zx\n",
remaining, mem_len, frame_len, tlen);
break;
}
@@ -130,8 +129,7 @@ int ft_send_read_data(struct scst_cmd *cmd)
frame_len = min(frame_len, remaining);
fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len);
if (!fp) {
FT_IO_DBG("frame_alloc failed. "
"use_sg %d frame_len %zd\n",
FT_IO_DBG("frame_alloc failed. use_sg %d frame_len %zd\n",
use_sg, frame_len);
break;
}
@@ -186,9 +184,8 @@ int ft_send_read_data(struct scst_cmd *cmd)
fp));
#endif
if (error) {
pr_warn("Sending frame with oid %#x oxid %#x resp_len"
" %d failed at frame_off %u / remaining %zu"
" with error code %d - %s", ep->oid, ep->oxid,
pr_warn("Sending frame with oid %#x oxid %#x resp_len %d failed at frame_off %u / remaining %zu with error code %d - %s",
ep->oid, ep->oxid,
scst_cmd_get_resp_data_len(cmd), frame_off,
remaining, error, error == -ENOMEM ?
"retrying" : "giving up");

View File

@@ -406,8 +406,8 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len,
return FC_SPP_RESP_CONF;
}
if (!tport->enabled) {
pr_err("Refused login from %#x because target port %s"
" not yet enabled", rdata->ids.port_id,
pr_err("Refused login from %#x because target port %s not yet enabled",
rdata->ids.port_id,
tport->tgt->tgt_name);
return FC_SPP_RESP_CONF;
}