From: Tom Rix Date: Mon, 19 Oct 2020 19:16:31 +0000 (-0700) Subject: mtd: remove unneeded break X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=232b67c399424948107fbffe4402a102121a2622;p=linux.git mtd: remove unneeded break A break is not needed if it is preceded by a return Signed-off-by: Tom Rix Acked-by: Richard Weinberger Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20201019191631.9604-1-trix@redhat.com --- diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index b40f46a43fc66..323035d4f2d01 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c @@ -881,7 +881,6 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg) if (copy_from_user(&offs, argp, sizeof(loff_t))) return -EFAULT; return mtd_block_isbad(mtd, offs); - break; } case MEMSETBADBLOCK: @@ -891,7 +890,6 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg) if (copy_from_user(&offs, argp, sizeof(loff_t))) return -EFAULT; return mtd_block_markbad(mtd, offs); - break; } case OTPSELECT: