rk: revert 20f3d0b+v3.0.66 to v3.0
[firefly-linux-kernel-4.4.55.git] / drivers / mtd / mtdchar.c
index 9f8658ef946711469ef3625933ed6fd7c60959ef..3f92731a5b9ebf288ed83602c36972e5d32dee8d 100644 (file)
@@ -320,7 +320,6 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count
                        ops.mode = MTD_OOB_RAW;
                        ops.datbuf = kbuf;
                        ops.oobbuf = NULL;
-                       ops.ooboffs = 0;
                        ops.len = len;
 
                        ret = mtd->write_oob(mtd, *ppos, &ops);