mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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>
This commit is contained in:
parent
6ec76070f1
commit
02d9d3cbac
1 changed files with 1 additions and 2 deletions
|
@ -152,8 +152,7 @@ static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev)
|
||||||
div = 8;
|
div = 8;
|
||||||
T = (int)((1000000000000LL * div) / octeon_get_io_clock_rate());
|
T = (int)((1000000000000LL * div) / octeon_get_io_clock_rate());
|
||||||
|
|
||||||
if (ata_timing_compute(dev, dev->pio_mode, &timing, T, T))
|
BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T));
|
||||||
BUG();
|
|
||||||
|
|
||||||
t1 = timing.setup;
|
t1 = timing.setup;
|
||||||
if (t1)
|
if (t1)
|
||||||
|
|
Loading…
Reference in a new issue