From mboxrd@z Thu Jan 1 00:00:00 1970 From: Naresh Kumar Inna Subject: Re: [V2 PATCH 6/9] csiostor: Chelsio FCoE offload driver submission (headers part 1). Date: Wed, 5 Sep 2012 23:14:30 +0530 Message-ID: <50478F7E.1020606@chelsio.com> References: <1346848442-4573-1-git-send-email-naresh@chelsio.com> <1346848442-4573-7-git-send-email-naresh@chelsio.com> <20120905093305.2418eac8@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: "JBottomley@parallels.com" , "linux-scsi@vger.kernel.org" , Dimitrios Michailidis , Casey Leedom , "netdev@vger.kernel.org" , Chethan Seshadri To: Stephen Hemminger Return-path: Received: from stargate.chelsio.com ([67.207.112.58]:29690 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754555Ab2IERor (ORCPT ); Wed, 5 Sep 2012 13:44:47 -0400 In-Reply-To: <20120905093305.2418eac8@nehalam.linuxnetplumber.net> Sender: netdev-owner@vger.kernel.org List-ID: On 9/5/2012 10:03 PM, Stephen Hemminger wrote: > On Wed, 5 Sep 2012 18:03:59 +0530 > Naresh Kumar Inna wrote: > >> + >> +#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.