[Intel-wired-lan] [PATCH net-next V2 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)
KY Srinivasan
kys at microsoft.com
Mon Apr 18 19:42:41 UTC 2016
> -----Original Message-----
> From: Joe Perches [mailto:joe at perches.com]
> Sent: Monday, April 18, 2016 10:00 AM
> To: KY Srinivasan <kys at microsoft.com>; Alexander Duyck
> <alexander.duyck at gmail.com>
> Cc: David Miller <davem at davemloft.net>; Netdev
> <netdev at vger.kernel.org>; linux-kernel at vger.kernel.org;
> devel at linuxdriverproject.org; olaf at aepfle.de; Robo Bot
> <apw at canonical.com>; Jason Wang <jasowang at redhat.com>;
> eli at mellanox.com; jackm at mellanox.com; yevgenyp at mellanox.com; John
> Ronciak <john.ronciak at intel.com>; intel-wired-lan <intel-wired-
> lan at lists.osuosl.org>
> Subject: Re: [Intel-wired-lan] [PATCH net-next V2 2/2] intel: ixgbevf: Support
> Windows hosts (Hyper-V)
>
> On Mon, 2016-04-18 at 16:52 +0000, KY Srinivasan wrote:
> []
> > > > +bool ixgbevf_on_hyperv(struct ixgbe_hw *hw)
> > > > +{
> > > > + if (hw->mbx.ops.check_for_msg == NULL)
> > > > + return true;
> > > > + else
> > > > + return false;
> > > > +}
>
> trivia:
>
> bool func(...)
> {
> if (<bar>)
> return true;
> else
> return false;
> }
>
> can generally be written as:
>
> bool func(...)
> {
> return <bar>;
> }
Thanks Joe; will update.
K. Y
More information about the Intel-wired-lan
mailing list