summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_octeon_cf.c
diff options
context:
space:
mode:
authorHarman Kalra <harman4linux@gmail.com>2016-09-21 22:59:48 +0300
committerTejun Heo <tj@kernel.org>2016-09-22 18:46:52 +0300
commit02d9d3cbac53bd59fe18fc32adc7bc7cde1037ae (patch)
tree2157f147dd2ad730d7d62ed8742c8253255eedae /drivers/ata/pata_octeon_cf.c
parent6ec76070f17993aa9ac0344330b971783d10c9c2 (diff)
downloadlinux-02d9d3cbac53bd59fe18fc32adc7bc7cde1037ae.tar.xz
ata: Replace BUG() with BUG_ON().
Replace BUG() with BUG_ON(). Caught by coccinelle. Signed-off-by: Harman Kalra <harman4linux@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_octeon_cf.c')
-rw-r--r--drivers/ata/pata_octeon_cf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 27245957eee3..475a00669427 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -152,8 +152,7 @@ static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev)
div = 8;
T = (int)((1000000000000LL * div) / octeon_get_io_clock_rate());
- if (ata_timing_compute(dev, dev->pio_mode, &timing, T, T))
- BUG();
+ BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T));
t1 = timing.setup;
if (t1)