[PATCH 1/3] net: dsa: Use true instead of 1 in the set_promisc() call

Bin Meng bmeng.cn at gmail.com
Wed Oct 27 04:18:54 CEST 2021


On Sun, Oct 17, 2021 at 2:26 AM Ramon Fried <rfried.dev at gmail.com> wrote:
>
> On Wed, Sep 29, 2021 at 4:32 PM Vladimir Oltean <vladimir.oltean at nxp.com> wrote:
> >
> > On Wed, Sep 29, 2021 at 01:50:44PM +0800, Bin Meng wrote:
> > > set_promisc() call accepts the parameter of a bool type. Make it
> > > clear by using true instead of 1.
> > >
> > > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > > ---
> > >
> > >  net/dsa-uclass.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c
> > > index 694664d81b..dcefec03f4 100644
> > > --- a/net/dsa-uclass.c
> > > +++ b/net/dsa-uclass.c
> > > @@ -282,7 +282,7 @@ static int dsa_port_probe(struct udevice *pdev)
> > >               struct eth_ops *eth_ops = eth_get_ops(master);
> > >
> > >               if (eth_ops->set_promisc)
> > > -                     eth_ops->set_promisc(master, 1);
> > > +                     eth_ops->set_promisc(master, true);
> > >
> > >               return 0;
> > >       }
> > > --
> > > 2.25.1
> > >
> >
> > Reviewed-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>

Ping for apply?


More information about the U-Boot mailing list