Whitespace-only changes. Fixed the following categories of checkpatch

complaints:
- code indent should use tabs where possible.
- trailing whitespace.
- else should follow close brace '}'.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1074 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-09-03 18:31:22 +00:00
parent 70d66b181f
commit 9e18cc659e
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ typedef _Bool bool;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18))
#define COMPLETION_INITIALIZER_ONSTACK(work) \
({ init_completion(&work); work; })
/*
* Lockdep needs to run a non-constant initializer for on-stack
* completions - so we use the _ONSTACK() variant for those that
+8 -9
View File
@@ -540,21 +540,20 @@ static int scst_local_queuecommand(struct scsi_cmnd *SCpnt,
sgl_count = scsi_sg_count(SCpnt);
} else {
/*
* Build a one-element scatter list out of the buffer
* We will not even get here if the kernel version we
* are building on only supports scatterlists. See #if above.
*
* We use the sglist and bufflen function/macros to isolate
* us from kernel version differences.
*/
* Build a one-element scatter list out of the buffer
* We will not even get here if the kernel version we
* are building on only supports scatterlists. See #if above.
*
* We use the sglist and bufflen function/macros to isolate
* us from kernel version differences.
*/
if (scsi_sglist(SCpnt)) {
sg_init_one(&(tgt_specific->sgl),
(const void *)scsi_sglist(SCpnt),
scsi_bufflen(SCpnt));
sgl = &(tgt_specific->sgl);
sgl_count = 1;
}
else {
} else {
sgl = NULL;
sgl_count = 0;
}