lkml.org 
[lkml]   [2020]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] bnx2x: correct a mistake when show error code
It is useless.
The original code just tell some error info. and don't show errorcode

On 8/29/20, Yi Li <yili@winhong.com> wrote:
> use rc for error code.
>
> Signed-off-by: Yi Li <yili@winhong.com>
> ---
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> index 1426c691c7c4..0346771396ce 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> @@ -13562,9 +13560,8 @@ static int bnx2x_ext_phy_common_init(struct bnx2x
> *bp, u32 shmem_base_path[],
> }
>
> if (rc)
> - netdev_err(bp->dev, "Warning: PHY was not initialized,"
> - " Port %d\n",
> - 0);
> + netdev_err(bp->dev, "Warning: PHY was not initialized, Port %d\n",
> + rc);
> return rc;
> }
>
> --
> 2.25.3
>
>
>
>

\
 
 \ /
  Last update: 2020-08-29 13:01    [W:0.036 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site