projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403
[librecmc/librecmc.git]
/
package
/
system
/
mtd
/
src
/
trx.c
diff --git
a/package/system/mtd/src/trx.c
b/package/system/mtd/src/trx.c
index 86d62fc19e7ebf5884fc33212eefcdce75f879db..089d1ace46398376591b0dfebbefd196598acffd 100644
(file)
--- a/
package/system/mtd/src/trx.c
+++ b/
package/system/mtd/src/trx.c
@@
-101,6
+101,7
@@
err:
return -1;
}
+#ifndef target_ar71xx
int
trx_check(int imagefd, const char *mtd, char *buf, int *len)
{
@@
-141,6
+142,7
@@
trx_check(int imagefd, const char *mtd, char *buf, int *len)
close(fd);
return 1;
}
+#endif
int
mtd_fixtrx(const char *mtd, size_t offset)