From 3baf34908fe7cf45c1dd24d940b145c3588b58ba Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 26 Apr 2014 06:32:32 +0000 Subject: [PATCH] scst: Fix recently introduced checkpatch complaints about whitespace Fix two instances of the following checkpatch errors: ERROR: code indent should use tabs where possible ERROR: spaces required around that ':' (ctx:VxW) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5483 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 4 ++-- scst/src/dev_handlers/scst_vdisk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index a393956c8..54644507e 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -2417,12 +2417,12 @@ struct scst_device { /**************************************************************/ /************************************************************* - ** Dev's control mode page related values. Updates serialized + ** Dev's control mode page related values. Updates serialized ** by device blocking. Since device blocking protects only ** commands on the execution stage, in all other read cases ** use ACCESS_ONCE(), if necessary. Modified independently ** to the above fields, hence the alignment. - *************************************************************/ + *************************************************************/ unsigned int queue_alg:4 __aligned(sizeof(long)); unsigned int tst:3; diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index b34bd445c..c83ded7f7 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -3692,11 +3692,11 @@ static int vdisk_caching_pg(unsigned char *p, int pcontrol, break; case 2: /* default */ memcpy(p, caching_pg, sizeof(caching_pg)); - p[2] |= (DEF_WRITE_THROUGH || virt_dev->nv_cache) ? 0: WCE; + p[2] |= (DEF_WRITE_THROUGH || virt_dev->nv_cache) ? 0 : WCE; break; case 3: /* saved */ memcpy(p, caching_pg, sizeof(caching_pg)); - p[2] |= (virt_dev->wt_flag_saved || virt_dev->nv_cache) ? 0: WCE; + p[2] |= (virt_dev->wt_flag_saved || virt_dev->nv_cache) ? 0 : WCE; break; default: sBUG_ON(1);