Thread (20 messages) 20 messages, 3 authors, 2012-09-05

Re: [V2 PATCH 6/9] csiostor: Chelsio FCoE offload driver submission (headers part 1).

From: Naresh Kumar Inna <hidden>
Date: 2012-09-05 17:44:30
Also in: linux-scsi

On 9/5/2012 10:03 PM, Stephen Hemminger wrote:
On Wed,  5 Sep 2012 18:03:59 +0530
Naresh Kumar Inna [off-list ref] wrote:
quoted
+
+#define	CSIO_ASSERT(cond)						\
+do {									\
+	if (unlikely(!((cond))))					\
+		BUG();                                                  \
+} while (0)
+
Why is this not just BUG_ON(!(cond)) ?
I will replace the 2 lines in the macro with BUG_ON() as you have
suggested. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help