From: Ajit Khaparde Date: Fri, 23 Jul 2010 19:42:40 +0000 (-0700) Subject: be2net: supress printing error when mac query fails for VF X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8943807c214535c079bd30469562d1126b70bc2a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git be2net: supress printing error when mac query fails for VF When a virtual function driver in initialized, the network mac query command can fail. Skip display of error message in that case. Signed-off-by: Ajit Khaparde Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 408e1f2dd8e8..45b6f9050342 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -76,7 +76,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter, sizeof(resp->hw_stats)); netdev_stats_update(adapter); } - } else if (compl_status != MCC_STATUS_NOT_SUPPORTED) { + } else if ((compl_status != MCC_STATUS_NOT_SUPPORTED) && + (compl->tag0 != OPCODE_COMMON_NTWK_MAC_QUERY)) { extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & CQE_STATUS_EXTD_MASK; dev_warn(&adapter->pdev->dev,