[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6D174973B0@AcuExch.aculab.com>
Date: Mon, 22 Sep 2014 11:03:13 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Richard Cochran' <richardcochran@...il.com>,
Alexander Duyck <alexander.h.duyck@...el.com>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"nhorman@...hat.com" <nhorman@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"john.fastabend@...il.com" <john.fastabend@...il.com>,
"matthew.vick@...el.com" <matthew.vick@...el.com>,
"jeffrey.t.kirsher@...el.com" <jeffrey.t.kirsher@...el.com>,
"sassmann@...hat.com" <sassmann@...hat.com>
Subject: RE: [net-next PATCH 29/29] fm10k: Add support for PTP
From: Of Richard Cochran
> On Thu, Sep 18, 2014 at 06:40:46PM -0400, Alexander Duyck wrote:
>
> > +static s32 fm10k_1588_msg_vf(struct fm10k_hw *hw, u32 **results,
> > + struct fm10k_mbx_info *mbx)
> > +{
> > + struct fm10k_intfc *interface = container_of(hw,
> > + struct fm10k_intfc,
> > + hw);
>
> This looks really funny to me here and in the other spot. Why not this?
>
> struct fm10k_intfc *interface = container_of(hw, struct fm10k_intfc, hw);
>
> Its only one over the 80 km/h speed limit.
Or split the assignment from the declaration.
David
--
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