projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compilation clean up
[yaffs2.git]
/
direct
/
test-framework
/
nanddrv.c
diff --git
a/direct/test-framework/nanddrv.c
b/direct/test-framework/nanddrv.c
index 5fb05c0a2f46f619c22998a43a8dbd99a419d0b6..2008ecf89fe60b3f835a1c1dfa3ef429980ffca3 100644
(file)
--- a/
direct/test-framework/nanddrv.c
+++ b/
direct/test-framework/nanddrv.c
@@
-75,7
+75,6
@@
int nanddrv_read_tr(struct nand_chip *this, int page,
{
unsigned char status;
int ncycles;
{
unsigned char status;
int ncycles;
- unsigned char *buffer;
if(n_tr < 1)
return 0;
if(n_tr < 1)
return 0;
@@
-98,7
+97,7
@@
int nanddrv_read_tr(struct nand_chip *this, int page,
buffer++;
}
} else {
buffer++;
}
} else {
- unsigned short *buffer = tr->buffer;
+ unsigned short *buffer =
(unsigned short *)
tr->buffer;
ncycles = tr->nbytes >> 1;
while (ncycles> 0) {
ncycles = tr->nbytes >> 1;
while (ncycles> 0) {
@@
-145,7
+144,7
@@
int nanddrv_write_tr(struct nand_chip *this, int page,
buffer++;
}
} else {
buffer++;
}
} else {
- unsigned short *buffer = tr->buffer;
+ unsigned short *buffer =
(unsigned short *)
tr->buffer;
ncycles = tr->nbytes >> 1;
while (ncycles> 0) {
ncycles = tr->nbytes >> 1;
while (ncycles> 0) {