[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190405192836.4866-1-madhumithabiw@gmail.com>
Date: Fri, 5 Apr 2019 14:28:36 -0500
From: Madhumitha Prabakaran <madhumithabiw@...il.com>
To: jfrederich@...il.com, dsd@...top.org, jon.nettleton@...il.com,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Cc: Madhumitha Prabakaran <madhumithabiw@...il.com>
Subject: [PATCH] Staging: olpc_dcon: Use WARN_ON() instead of BUG_ON()
Use WARN_ON() instead of BUG_ON(), as the WARN_ON() produces a backtrace
without crashing the kernel.
Issue found by checkpatch.pl.
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@...il.com>
---
drivers/staging/olpc_dcon/olpc_dcon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
index 6b714f740ac3..900baab70691 100644
--- a/drivers/staging/olpc_dcon/olpc_dcon.c
+++ b/drivers/staging/olpc_dcon/olpc_dcon.c
@@ -138,7 +138,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
}
if (x < 0) {
pr_err("unable to stabilize dcon's smbus, reasserting power and praying.\n");
- BUG_ON(olpc_board_at_least(olpc_board(0xc2)));
+ WARN_ON(olpc_board_at_least(olpc_board(0xc2)));
pm = 0;
olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0);
msleep(100);
--
2.17.1
Powered by blists - more mailing lists