From: Or Gerlitz Date: Sun, 14 Dec 2014 14:18:05 +0000 (+0200) Subject: net/mlx4_core: Avoid double dumping of the PF device capabilities X-Git-Tag: omap-for-v3.19/fixes-rc1~39^2~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c78e25edbf3ed87b23709c9b0732be5fa00d5f9f;p=pandora-kernel.git net/mlx4_core: Avoid double dumping of the PF device capabilities To support asymmetric EQ allocations, we should query the device capabilities prior to enabling SRIOV. As a side effect of adding that, we are dumping the PF device capabilities twice. Avoid that by moving the printing into a helper function which is called once. Fixes: 7ae0e400cd93 ('net/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for PF/VFs') Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed