svn commit: r337105 - stable/11/sys/dev/mlx5/mlx5_core

Hans Petter Selasky hselasky at FreeBSD.org
Thu Aug 2 08:44:41 UTC 2018


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);


More information about the svn-src-all mailing list