summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-10-19 22:16:31 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-10-28 13:58:11 +0300
commit232b67c399424948107fbffe4402a102121a2622 (patch)
tree586b5edbb6af2d4a4be58c856c4850f7a05c610d /drivers/mtd
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
downloadlinux-232b67c399424948107fbffe4402a102121a2622.tar.xz
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
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdchar.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index b40f46a43fc6..323035d4f2d0 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: