Skip to contentSkip to conversation

mtd: cfi: indent some if statements

PATCH Applied Dan Carpenter 3 participants 3 messages May 14, 2014 – May 21, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: cfi: indent some if statements

The break statements should be indented another tab.

drivers/mtd/chips/cfi_cmdset_0020.c +2 -2
index 6293855..423666b 100644
@@ -961,7 +961,7 @@ static int cfi_staa_erase_varsize(struct mtd_info *mtd,
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}
 
@@ -1170,7 +1170,7 @@ static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}
 	return 0;
drivers/mtd/chips/cfi_util.c +1 -1
index 08049f6..09c79bd 100644
@@ -239,7 +239,7 @@ int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Dan Carpenter

The break statements should be indented another tab.

Best regards,
Jingoo Han

Quoted 36 lines
drivers/mtd/chips/cfi_cmdset_0020.c +2 -2
index 6293855..423666b 100644
@@ -961,7 +961,7 @@ static int cfi_staa_erase_varsize(struct mtd_info *mtd,
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}
 
@@ -1170,7 +1170,7 @@ static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}
 	return 0;
drivers/mtd/chips/cfi_util.c +1 -1
index 08049f6..09c79bd 100644
@@ -239,7 +239,7 @@ int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
 			chipnum++;
 
 			if (chipnum >= cfi->numchips)
-			break;
+				break;
 		}
 	}