Skip to content

Commit 2158890

Browse files
tobluxmiquelraynal
authored andcommitted
mtd: sm_ftl: Fix typo in comment in sm_read_lba
s/is/if/ Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent f3dc4d9 commit 2158890

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/sm_ftl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int sm_read_lba(struct sm_oob *oob)
156156
if (!memcmp(oob, erased_pattern, SM_OOB_SIZE))
157157
return -1;
158158

159-
/* Now check is both copies of the LBA differ too much */
159+
/* Now check if both copies of the LBA differ too much */
160160
lba_test = *(uint16_t *)oob->lba_copy1 ^ *(uint16_t*)oob->lba_copy2;
161161
if (lba_test && !is_power_of_2(lba_test))
162162
return -2;

0 commit comments

Comments
 (0)