mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
adm5120: use mtd_read helper in trxsplit.c
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34949 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3d264ffd0a
commit
e16d2987ec
@ -53,8 +53,7 @@ static int trxsplit_checktrx(struct mtd_info *mtd, unsigned long offset)
|
||||
size_t retlen;
|
||||
int err;
|
||||
|
||||
err = mtd->read(mtd, offset, sizeof(trx_hdr), &retlen,
|
||||
(void *)&trx_hdr);
|
||||
err = mtd_read(mtd, offset, sizeof(trx_hdr), &retlen, (void *)&trx_hdr);
|
||||
if (err) {
|
||||
printk(KERN_ALERT PFX "unable to read from '%s'\n", mtd->name);
|
||||
goto err_out;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user