Hi,

> >>> +static inline void macb_hw_fix_mac_speed(struct macb *bp,
> >>> +                                  struct phy_device *phydev)
> >>> +{
> >>> + if (likely(bp->converter_phy.fix_mac_speed))
> >>
> >> What is the purpose of this branch bias? The code isn't in some hot
> >> path, so I suspect that its not needed.
> >
> > If we won't put this check driver will crash with NULL pointer
> > dereference for the below cases
> 
> I know that...
> 
> > ---> Converter driver is disabled
> > ---> Converter driver is enabled but the converter probe is not called from 
> > the
> macb driver.
> 
> I didn't make myself clear: It's not the branch itself that I'm talking about 
> it's the
> branch profiling directive "likely()" that seems not necessary.

Ok will remove in the next version...

Regards,
Kedar.

Reply via email to