aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r--drivers/mtd/mtdchar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 92da621b1425..64efcbf087e9 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -867,10 +867,7 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg)
867 867
868 if (copy_from_user(&offs, argp, sizeof(loff_t))) 868 if (copy_from_user(&offs, argp, sizeof(loff_t)))
869 return -EFAULT; 869 return -EFAULT;
870 if (!mtd->block_isbad) 870 return mtd_block_isbad(mtd, offs);
871 ret = -EOPNOTSUPP;
872 else
873 return mtd_block_isbad(mtd, offs);
874 break; 871 break;
875 } 872 }
876 873