Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 08:44:40 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337105 - stable/11/sys/dev/mlx5/mlx5_core
Message-ID:  <201808020844.w728ieQ0056302@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Aug  2 08:44:40 2018
New Revision: 337105
URL: https://svnweb.freebsd.org/changeset/base/337105

Log:
  MFC r336399:
  Remove redundant call to mlx5_vsc_find_cap() in mlx5core.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c	Thu Aug  2 08:43:54 2018	(r337104)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c	Thu Aug  2 08:44:40 2018	(r337105)
@@ -846,10 +846,7 @@ static int mlx5_pci_init(struct mlx5_core_dev *dev, st
 		goto err_clr_master;
 	}
 
-	if (mlx5_vsc_find_cap(dev))
-		dev_err(&pdev->dev, "Unable to find vendor specific capabilities\n");
-
-        return 0;
+	return 0;
 
 err_clr_master:
 	pci_clear_master(dev->pdev);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020844.w728ieQ0056302>