diff options
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 7a7df851c993..608f7af679cb 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -512,16 +512,10 @@ static int mtd_ioctl(struct inode *inode, struct file *file, | |||
512 | break; | 512 | break; |
513 | } | 513 | } |
514 | 514 | ||
515 | case MEMSETOOBSEL: | ||
516 | { | ||
517 | if (copy_from_user(&mtd->oobinfo, argp, sizeof(struct nand_oobinfo))) | ||
518 | return -EFAULT; | ||
519 | break; | ||
520 | } | ||
521 | |||
522 | case MEMGETOOBSEL: | 515 | case MEMGETOOBSEL: |
523 | { | 516 | { |
524 | if (copy_to_user(argp, &(mtd->oobinfo), sizeof(struct nand_oobinfo))) | 517 | if (copy_to_user(argp, mtd->oobinfo, |
518 | sizeof(struct nand_oobinfo))) | ||
525 | return -EFAULT; | 519 | return -EFAULT; |
526 | break; | 520 | break; |
527 | } | 521 | } |