OneNAND: One-Time Programmable (OTP) support
Jörn Engel
joern at wohnheim.fh-wedel.de
Fri May 12 13:38:02 EDT 2006
On Fri, 12 May 2006 16:59:03 +0100, Linux-MTD Mailing List wrote:
>
> + block_cmd = 1;
[...]
> - if (cmd == ONENAND_CMD_ERASE) {
> + if (cmd == block_cmd) {
s/1/ONENAND_CMD_ERASE/ ?
> + size_t tmp_retlen;
> + int size = len;
> +
> + ret = action(mtd, from, len, &tmp_retlen, buf);
> +
> + buf += size;
> + len -= size;
> + *retlen += size;
Why do you bother declaring tmp_retlen, if you ignore its value?
Jörn
--
tglx1 thinks that joern should get a (TM) for "Thinking Is Hard"
-- Thomas Gleixner
More information about the linux-mtd
mailing list