projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ec7607
)
ata: Replace BUG() with BUG_ON().
author
Harman Kalra
<harman4linux@gmail.com>
Wed, 21 Sep 2016 19:59:48 +0000
(
01:29
+0530)
committer
Tejun Heo
<tj@kernel.org>
Thu, 22 Sep 2016 15:46:52 +0000
(11:46 -0400)
Replace BUG() with BUG_ON().
Caught by coccinelle.
Signed-off-by: Harman Kalra <harman4linux@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_octeon_cf.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_octeon_cf.c
b/drivers/ata/pata_octeon_cf.c
index
2724595
..
475a006
100644
(file)
--- 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)