[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190825121214.GJ6729@t480s.localdomain>
Date: Sun, 25 Aug 2019 12:12:14 -0400
From: Vivien Didelot <vivien.didelot@...il.com>
To: Marek Behún <marek.behun@....cz>
Cc: netdev@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
Marek Behún <marek.behun@....cz>
Subject: Re: [PATCH net-next v3 3/6] net: dsa: mv88e6xxx: create
serdes_get_lane chip operation
On Sun, 25 Aug 2019 05:59:12 +0200, Marek Behún <marek.behun@....cz> wrote:
> int mv88e6390_serdes_power(struct mv88e6xxx_chip *chip, int port, bool on)
> {
> - int lane;
> -
> - lane = mv88e6390_serdes_get_lane(chip, port);
> - if (lane == -ENODEV)
> - return 0;
> + s8 lane;
> + int err;
>
> + err = mv88e6xxx_serdes_get_lane(chip, port, &lane);
> + if (err)
> + return err;
> if (lane < 0)
> - return lane;
> + return 0;
In fact you're also relying on -ENODEV, which is what you return here (and in
other places) instead of 0. So I'm afraid you have to address my comment now...
Powered by blists - more mailing lists