[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <t2g412e6f7f1004250233pbdfe4d8aj7dc0e0a4980d8eb9@mail.gmail.com>
Date: Sun, 25 Apr 2010 17:33:02 +0800
From: Changli Gao <xiaosuo@...il.com>
To: xiaohui.xin@...el.com
Cc: netdev@...r.kernel.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, mst@...hat.com, mingo@...e.hu,
davem@...emloft.net, jdike@...ux.intel.com
Subject: Re: [RFC][PATCH v4 05/18] Add a function to indicate if device use
external buffer.
On Sun, Apr 25, 2010 at 5:19 PM, <xiaohui.xin@...el.com> wrote:
> +static int dev_is_mpassthru(struct net_device *dev)
> +{
> + if (dev && dev->mp_port)
> + return 1;
> + return 0;
> +}
> +
Please make it a inline function. And you would write it with less
lines of code.
return dev && dev->mp_port;
--
Regards,
Changli Gao(xiaosuo@...il.com)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists