svn commit: r336399 - head/sys/dev/mlx5/mlx5_core

Hans Petter Selasky hselasky at FreeBSD.org
Tue Jul 17 10:27:47 UTC 2018


Author: hselasky
Date: Tue Jul 17 10:27:46 2018
New Revision: 336399
URL: https://svnweb.freebsd.org/changeset/base/336399

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

Modified:
  head/sys/dev/mlx5/mlx5_core/mlx5_main.c

Modified: head/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_core/mlx5_main.c	Tue Jul 17 10:20:01 2018	(r336398)
+++ head/sys/dev/mlx5/mlx5_core/mlx5_main.c	Tue Jul 17 10:27:46 2018	(r336399)
@@ -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-head mailing list