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

mtd: remove unneeded break

A break is not needed if it is preceded by a return

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201019191631.9604-1-trix@redhat.com

authored by

Tom Rix and committed by
Miquel Raynal
232b67c3 3650b228

-2
-2
drivers/mtd/mtdchar.c
··· 881 881 if (copy_from_user(&offs, argp, sizeof(loff_t))) 882 882 return -EFAULT; 883 883 return mtd_block_isbad(mtd, offs); 884 - break; 885 884 } 886 885 887 886 case MEMSETBADBLOCK: ··· 890 891 if (copy_from_user(&offs, argp, sizeof(loff_t))) 891 892 return -EFAULT; 892 893 return mtd_block_markbad(mtd, offs); 893 - break; 894 894 } 895 895 896 896 case OTPSELECT: