[PATCH 3/6] Mtd: fixed space related issues
Neal B
nealb001 at gmail.com
Sun Jul 11 22:50:07 EDT 2010
From 5af46680b31132acbd587b953d390317796700de Mon Sep 17 00:00:00 2001
From: Neal Buckendahl <nealb001 at gmail.com>
Date: Sun, 11 Jul 2010 17:26:13 -0500
Subject: [PATCH 3/6] Mtd: fixed space related issues found by the
checkpatch.pl tool
Signed-off-by: Neal Buckendahl <nealb001 at gmail.com>
---
drivers/mtd/inftlcore.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/inftlcore.c b/drivers/mtd/inftlcore.c
index 015a7fe..d318270 100644
--- a/drivers/mtd/inftlcore.c
+++ b/drivers/mtd/inftlcore.c
@@ -114,7 +114,7 @@ static void inftl_add_mtd(struct mtd_blktrans_ops
*tr, struct mtd_info *mtd)
"(== 0x%lx sects)\n",
inftl->cylinders, inftl->heads , inftl->sectors,
(long)inftl->cylinders * (long)inftl->heads *
- (long)inftl->sectors );
+ (long)inftl->sectors);
}
if (add_mtd_blktrans_dev(&inftl->mbd)) {
@@ -279,7 +279,7 @@ static u16 INFTL_foldchain(struct INFTLrecord
*inftl, unsigned thisVUC, unsigned
*/
silly = MAX_LOOPS;
while (thisEUN < inftl->nb_blocks) {
- for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) {
+ for (block = 0; block < inftl->EraseSize/SECTORSIZE; block++) {
if ((BlockMap[block] != BLOCK_NIL) ||
BlockDeleted[block])
continue;
@@ -291,7 +291,7 @@ static u16 INFTL_foldchain(struct INFTLrecord
*inftl, unsigned thisVUC, unsigned
else
status = oob.b.Status | oob.b.Status1;
- switch(status) {
+ switch (status) {
case SECTOR_FREE:
case SECTOR_IGNORE:
break;
@@ -341,7 +341,7 @@ static u16 INFTL_foldchain(struct INFTLrecord
*inftl, unsigned thisVUC, unsigned
/*
* Copy only in non free block (free blocks can only
- * happen in case of media errors or deleted blocks).
+ * happen in case of media errors or deleted blocks).
*/
if (BlockMap[block] == BLOCK_NIL)
continue;
@@ -476,7 +476,7 @@ static inline u16 INFTL_findwriteunit(struct
INFTLrecord *inftl, unsigned block)
{
unsigned int thisVUC = block / (inftl->EraseSize / SECTORSIZE);
unsigned int thisEUN, writeEUN, prev_block, status;
- unsigned long blockofs = (block * SECTORSIZE) & (inftl->EraseSize -1);
+ unsigned long blockofs = (block * SECTORSIZE) & (inftl->EraseSize - 1);
struct mtd_info *mtd = inftl->mbd.mtd;
struct inftl_oob oob;
struct inftl_bci bci;
@@ -504,7 +504,7 @@ static inline u16 INFTL_findwriteunit(struct
INFTLrecord *inftl, unsigned block)
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: status of block %d in "
"EUN %d is %x\n", block , writeEUN, status);
- switch(status) {
+ switch (status) {
case SECTOR_FREE:
writeEUN = thisEUN;
break;
@@ -677,7 +677,7 @@ static void INFTL_trydeletechain(struct INFTLrecord
*inftl, unsigned thisVUC)
else
status = bci.Status | bci.Status1;
- switch(status) {
+ switch (status) {
case SECTOR_FREE:
case SECTOR_IGNORE:
break;
@@ -943,7 +943,7 @@ static struct mtd_blktrans_ops inftl_tr = {
.name = "inftl",
.major = INFTL_MAJOR,
.part_bits = INFTL_PARTN_BITS,
- .blksize = 512,
+ .blksize = 512,
.getgeo = inftl_getgeo,
.readsect = inftl_readblock,
.writesect = inftl_writeblock,
--
1.7.1
More information about the linux-mtd
mailing list