mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user