> -----Original Message-----
> From: Joe Perches [mailto:[email protected]]
> Sent: Monday, April 18, 2016 10:00 AM
> To: KY Srinivasan <[email protected]>; Alexander Duyck
> <[email protected]>
> Cc: David Miller <[email protected]>; Netdev
> <[email protected]>; [email protected];
> [email protected]; [email protected]; Robo Bot
> <[email protected]>; Jason Wang <[email protected]>;
> [email protected]; [email protected]; [email protected]; John
> Ronciak <[email protected]>; intel-wired-lan <intel-wired-
> [email protected]>
> 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
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to