diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/mtdchar.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 4e8e5fbc1e13..25bbbc3aa665 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -310,10 +310,6 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c | |||
310 | ret = -EROFS; | 310 | ret = -EROFS; |
311 | break; | 311 | break; |
312 | case MTD_FILE_MODE_OTP_USER: | 312 | case MTD_FILE_MODE_OTP_USER: |
313 | if (!mtd->write_user_prot_reg) { | ||
314 | ret = -EOPNOTSUPP; | ||
315 | break; | ||
316 | } | ||
317 | ret = mtd_write_user_prot_reg(mtd, *ppos, len, | 313 | ret = mtd_write_user_prot_reg(mtd, *ppos, len, |
318 | &retlen, kbuf); | 314 | &retlen, kbuf); |
319 | break; | 315 | break; |