[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1341746043.3265.1653.camel@edumazet-glaptop>
Date: Sun, 08 Jul 2012 13:14:03 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Merav Sicron <meravs@...adcom.com>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
eilong@...adcom.com, dmitry@...adcom.com
Subject: Re: [net-next patch] bnx2x: Add run-time CNIC support
On Sun, 2012-07-08 at 14:00 +0300, Merav Sicron wrote:
> static int set_is_cnic_enabled(bool is_vf)
> {
> if (is_vf)
> return 0;
> #if defined(CONFIG_CNIC) || defined(CONFIG_CNIC_MODULE)
> return 1;
> #else
> return 0;
> #endif
> }
Small note : this should use booleans and can use
if (is_vf)
return false;
return IS_ENABLED(CONFIG_CNIC);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists