Minor - remove redundant check from ata_try_dma.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 17 Apr 2010 20:57:57 +0000 (16:57 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 17 Apr 2010 20:57:57 +0000 (16:57 -0400)
src/ata.c

index dfe09e95b21007e4d74d93317ab913c6a4b16e4e..42bb69123e2a8c545338a645d9902b98c4f86b7f 100644 (file)
--- a/src/ata.c
+++ b/src/ata.c
@@ -405,8 +405,6 @@ ata_try_dma(struct disk_op_s *op, int iswrite, int blocksize)
             // Too many descriptors..
             return -1;
         u32 count = bytes;
-        if (count > 0x10000)
-            count = 0x10000;
         u32 max = 0x10000 - (dest & 0xffff);
         if (count > max)
             count = max;