From 754d13967374ecb9e60ed81e52a96e7dc9380163 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 6 Jan 2010 20:22:15 +0000 Subject: [PATCH] Fixed checkpatch complaints about whitespace (use tabs instead of spaces / trailing whitespace) and the sparse complaint about using '0' as a pointer. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1433 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 26 +++++++++++++------------- scst/include/scst.h | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 9ad9f0feb..79e724a68 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -647,7 +647,7 @@ static inline struct iscsi_cmnd *iscsi_alloc_main_rsp(struct iscsi_cmnd *parent) TRACE_ENTRY(); - EXTRACHECKS_BUG_ON(parent->main_rsp != 0); + EXTRACHECKS_BUG_ON(parent->main_rsp != NULL); rsp = iscsi_alloc_rsp(parent); parent->main_rsp = rsp; @@ -1722,7 +1722,7 @@ int cmnd_rx_continue(struct iscsi_cmnd *req) req->r2t_len_to_send = req->r2t_len_to_receive - min_t(unsigned int, session->sess_param.first_burst_length - - req->pdu.datasize, + req->pdu.datasize, req->r2t_len_to_receive); } else req->r2t_len_to_send = req->r2t_len_to_receive; @@ -1745,7 +1745,7 @@ int cmnd_rx_continue(struct iscsi_cmnd *req) } } -trace: +trace: TRACE_DBG("req=%p, dir=%d, unsolicited_data_expected=%d, " "r2t_len_to_receive=%d, r2t_len_to_send=%d, bufflen=%d, " "own_sg %d", req, dir, unsolicited_data_expected, @@ -2167,18 +2167,18 @@ static int cmnd_abort(struct iscsi_cmnd *req, int *status) * iSCSI RFC: * * b) If the Referenced Task Tag does not identify an existing task, - * but if the CmdSN indicated by the RefCmdSN field in the Task - * Management function request is within the valid CmdSN window - * and less than the CmdSN of the Task Management function - * request itself, then targets must consider the CmdSN received - * and return the "Function complete" response. + * but if the CmdSN indicated by the RefCmdSN field in the Task + * Management function request is within the valid CmdSN window + * and less than the CmdSN of the Task Management function + * request itself, then targets must consider the CmdSN received + * and return the "Function complete" response. * * c) If the Referenced Task Tag does not identify an existing task - * and if the CmdSN indicated by the RefCmdSN field in the Task - * Management function request is outside the valid CmdSN window, - * then targets must return the "Task does not exist" response. - * - * 128 seems to be a good "window". + * and if the CmdSN indicated by the RefCmdSN field in the Task + * Management function request is outside the valid CmdSN window, + * then targets must return the "Task does not exist" response. + * + * 128 seems to be a good "window". */ if (between(req_hdr->ref_cmd_sn, req_hdr->cmd_sn - 128, req_hdr->cmd_sn)) { diff --git a/scst/include/scst.h b/scst/include/scst.h index 5948e9620..66c2d4bfc 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -1221,7 +1221,7 @@ struct scst_session { * * We must always keep commands in the sess list from the * very beginning, because otherwise they can be missed during - * TM processing. + * TM processing. */ struct list_head sess_cmd_list;