Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Harman Kalra and committed by
Tejun Heo
02d9d3cb 6ec76070

+1 -2
+1 -2
drivers/ata/pata_octeon_cf.c
··· 152 152 div = 8; 153 153 T = (int)((1000000000000LL * div) / octeon_get_io_clock_rate()); 154 154 155 - if (ata_timing_compute(dev, dev->pio_mode, &timing, T, T)) 156 - BUG(); 155 + BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T)); 157 156 158 157 t1 = timing.setup; 159 158 if (t1)