From: Wan Jiabing <hidden> Date: 2022-05-09 13:50:25
In lanphy_read_page_reg, calling __phy_read() might return a negative
error code. Use 'int' to check the negative error code.
Signed-off-by: Wan Jiabing <redacted>
---
drivers/net/phy/micrel.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
From: Andrew Lunn <andrew@lunn.ch> Date: 2022-05-09 13:53:34
On Mon, May 09, 2022 at 09:49:51PM +0800, Wan Jiabing wrote:
In lanphy_read_page_reg, calling __phy_read() might return a negative
error code. Use 'int' to check the negative error code.
Hi Wan
As far as the code goes, this looks good.
Please could you add a Fixes: tag, to indicate where the problem was
introduced. Please also read the netdev FAQ, so you can correctly set
the patch subject. This should be against the net tree, since it is a
fix.
Thanks
Andrew
From: Jiabing Wan <hidden> Date: 2022-05-09 13:56:04
Hi, Andrew
On 2022/5/9 21:53, Andrew Lunn wrote:
On Mon, May 09, 2022 at 09:49:51PM +0800, Wan Jiabing wrote:
quoted
In lanphy_read_page_reg, calling __phy_read() might return a negative
error code. Use 'int' to check the negative error code.
Hi Wan
As far as the code goes, this looks good.
Please could you add a Fixes: tag, to indicate where the problem was
introduced. Please also read the netdev FAQ, so you can correctly set
the patch subject. This should be against the net tree, since it is a
fix.
Thanks
Andrew
From: "Russell King (Oracle)" <linux@armlinux.org.uk> Date: 2022-05-09 15:56:46
Hi,
Please correct the spelling error of "incorrect" in the subject line.
Thanks.
On Mon, May 09, 2022 at 09:49:51PM +0800, Wan Jiabing wrote:
quoted hunk
In lanphy_read_page_reg, calling __phy_read() might return a negative
error code. Use 'int' to check the negative error code.
Signed-off-by: Wan Jiabing <redacted>
---
drivers/net/phy/micrel.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)