All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neal B <nealb001@gmail.com>
To: Artem.Bityutskiy@nokia.com
Cc: maximlevitsky@gmail.com, cascardo@holoscopio.com,
	linux-kernel@vger.kernel.org, Julia Lawall <julia@diku.dk>,
	linux-mtd@lists.infradead.org, jkosina@suse.cz,
	mohanlaljangir@gmail.com, rmk+kernel@arm.linux.org.uk,
	dwmw2@infradead.org
Subject: [PATCH 3/6] Mtd: fixed space related issues
Date: Sun, 11 Jul 2010 21:50:07 -0500	[thread overview]
Message-ID: <4C3A82DF.8080604@gmail.com> (raw)

 From 5af46680b31132acbd587b953d390317796700de Mon Sep 17 00:00:00 2001
From: Neal Buckendahl <nealb001@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@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

WARNING: multiple messages have this Message-ID (diff)
From: Neal B <nealb001@gmail.com>
To: Artem.Bityutskiy@nokia.com
Cc: dwmw2@infradead.org, rmk+kernel@arm.linux.org.uk,
	cascardo@holoscopio.com, mohanlaljangir@gmail.com,
	maximlevitsky@gmail.com, Julia Lawall <julia@diku.dk>,
	jkosina@suse.cz, linux-mtd@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 3/6] Mtd: fixed space related issues
Date: Sun, 11 Jul 2010 21:50:07 -0500	[thread overview]
Message-ID: <4C3A82DF.8080604@gmail.com> (raw)

 From 5af46680b31132acbd587b953d390317796700de Mon Sep 17 00:00:00 2001
From: Neal Buckendahl <nealb001@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@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



             reply	other threads:[~2010-07-12  2:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-12  2:50 Neal B [this message]
2010-07-12  2:50 ` [PATCH 3/6] Mtd: fixed space related issues Neal B

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C3A82DF.8080604@gmail.com \
    --to=nealb001@gmail.com \
    --cc=Artem.Bityutskiy@nokia.com \
    --cc=cascardo@holoscopio.com \
    --cc=dwmw2@infradead.org \
    --cc=jkosina@suse.cz \
    --cc=julia@diku.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=maximlevitsky@gmail.com \
    --cc=mohanlaljangir@gmail.com \
    --cc=rmk+kernel@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.