提交 02d9d3cb 编写于 作者: H Harman Kalra 提交者: Tejun Heo

ata: Replace BUG() with BUG_ON().

Replace BUG() with BUG_ON().
Caught by coccinelle.
Signed-off-by: NHarman Kalra <harman4linux@gmail.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 6ec76070
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册