int read)
{
int ret = 0;
- size_t rwsize;
while (count--) {
/* Raw access */
.mode = MTD_OOB_RAW
};
- rwsize = nand->writesize + nand->oobsize;
if (read)
ret = nand->read_oob(nand, off, &ops);
else
s = strchr(cmd, '.');
- if (!strcmp(s, ".raw")) {
+ if (s && !strcmp(s, ".raw")) {
raw = 1;
if (arg_off(argv[3], &dev, &off, &size))