From 9e18cc659e8456dd6c06c622443d3fa71c53f2c4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 3 Sep 2009 18:31:22 +0000 Subject: [PATCH] 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 --- scst/include/scst.h | 2 +- scst_local/scst_local.c | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 406d903ba..260b32b9b 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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 diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 62ff7d352..5c1f6153a 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -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; }