Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Miquel Raynal
2158890a f3dc4d98

+1 -1
+1 -1
drivers/mtd/sm_ftl.c
··· 156 156 if (!memcmp(oob, erased_pattern, SM_OOB_SIZE)) 157 157 return -1; 158 158 159 - /* Now check is both copies of the LBA differ too much */ 159 + /* Now check if both copies of the LBA differ too much */ 160 160 lba_test = *(uint16_t *)oob->lba_copy1 ^ *(uint16_t*)oob->lba_copy2; 161 161 if (lba_test && !is_power_of_2(lba_test)) 162 162 return -2;