mtd: remove unneeded break
authorTom Rix <trix@redhat.com>
Mon, 19 Oct 2020 19:16:31 +0000 (12:16 -0700)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 28 Oct 2020 10:58:11 +0000 (11:58 +0100)
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
drivers/mtd/mtdchar.c

index b40f46a43fc66e26718d194888e9cfc5802e56fc..323035d4f2d019c80e20fd65b5eeedd2ddb62675 100644 (file)
@@ -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: