NAND: Fix compilation warning and small coding style issue
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
@@ -50,7 +50,6 @@ static int nand_dump(nand_info_t *nand, ulong off, int only_oob)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
off &= ~(nand->writesize - 1);
|
off &= ~(nand->writesize - 1);
|
||||||
size_t dummy;
|
|
||||||
loff_t addr = (loff_t) off;
|
loff_t addr = (loff_t) off;
|
||||||
struct mtd_oob_ops ops;
|
struct mtd_oob_ops ops;
|
||||||
memset(&ops, 0, sizeof(ops));
|
memset(&ops, 0, sizeof(ops));
|
||||||
@@ -415,7 +414,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* ! BROKEN !
|
* ! BROKEN !
|
||||||
*
|
*
|
||||||
* TODO: must be implemented and tested by someone with HW
|
* TODO: must be implemented and tested by someone with HW
|
||||||
*/
|
*/
|
||||||
#if 0
|
#if 0
|
||||||
@@ -469,7 +468,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* ! BROKEN !
|
* ! BROKEN !
|
||||||
*
|
*
|
||||||
* TODO: must be implemented and tested by someone with HW
|
* TODO: must be implemented and tested by someone with HW
|
||||||
*/
|
*/
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user