[PATCH] mtd: remove unneeded break
trix at redhat.com
trix at redhat.com
Mon Oct 19 15:16:31 EDT 2020
From: Tom Rix <trix at redhat.com>
A break is not needed if it is preceded by a return
Signed-off-by: Tom Rix <trix at redhat.com>
---
drivers/mtd/mtdchar.c | 2 --
1 file changed, 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:
--
2.18.1
More information about the linux-mtd
mailing list