Skip to content

Commit

Permalink
[libata sata_mv] fix warning
Browse files Browse the repository at this point in the history
shuffle ifdef location to fix the following warning:
drivers/scsi/sata_mv.c:471: warning: 'mv_dump_mem' defined but not used
  • Loading branch information
Jeff Garzik committed Oct 5, 2005
1 parent 05b308e commit 8a70f8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ static void mv_stop_dma(struct ata_port *ap)
}
}

#ifdef ATA_DEBUG
static void mv_dump_mem(void __iomem *start, unsigned bytes)
{
#ifdef ATA_DEBUG
int b, w;
for (b = 0; b < bytes; ) {
DPRINTK("%p: ", start + b);
Expand All @@ -479,8 +479,9 @@ static void mv_dump_mem(void __iomem *start, unsigned bytes)
}
printk("\n");
}
#endif
}
#endif

static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
{
#ifdef ATA_DEBUG
Expand Down

0 comments on commit 8a70f8d

Please sign in to comment.