diff options
Diffstat (limited to 'drivers/ide/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index f0033eb2e88..ee86688d846 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c | |||
@@ -240,10 +240,6 @@ static int tx4939ide_build_dmatable(ide_drive_t *drive, struct request *rq) | |||
240 | int i; | 240 | int i; |
241 | struct scatterlist *sg; | 241 | struct scatterlist *sg; |
242 | 242 | ||
243 | hwif->sg_nents = ide_build_sglist(drive, rq); | ||
244 | if (hwif->sg_nents == 0) | ||
245 | return 0; | ||
246 | |||
247 | for_each_sg(hwif->sg_table, sg, hwif->sg_nents, i) { | 243 | for_each_sg(hwif->sg_table, sg, hwif->sg_nents, i) { |
248 | u32 cur_addr, cur_len, bcount; | 244 | u32 cur_addr, cur_len, bcount; |
249 | 245 | ||