diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-11 11:52:50 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-11 11:52:50 +0000 |
commit | 7c055d9648b20e9545ffe706e304f04c3d9733f6 (patch) | |
tree | 7cd13ff841cef5f1a31ce9bedb857eb64747f72e /firmware/target/arm | |
parent | 2da430bda19892930d21de5a39efc964b33934ec (diff) |
ata-creative-zvm: make sure return value is defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26771 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c index f84d904205..2885995f8c 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c +++ b/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c @@ -388,20 +388,20 @@ int ata_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* bu return _ata_read_sectors(IF_MD2(drive,) map_sector(start), count, buf); else { - int i, ret; + int i; unsigned char* dest = (unsigned char*)buf; /* Read sectors in parts of 0x8000 */ for(i=0; i<count; i+=64) { - ret = _ata_read_sectors(IF_MD2(drive,) map_sector(start+i), (count-i >= 64 ? 64 : count-i), (void*)dest); + int ret = _ata_read_sectors(IF_MD2(drive,) map_sector(start+i), (count-i >= 64 ? 64 : count-i), (void*)dest); if(ret != 0) return ret; dest += (count-i >= 64 ? 0x8000 : (count-i)*512); } - return ret; + return 0; } } |