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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to