Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5eb819d authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by David S. Miller
Browse files

hv_netvsc: hide warnings about uninitialized/missing rndis device



Hyper-V hosts are known to send RNDIS messages even after we halt the
device in rndis_filter_halt_device(). Remove user visible messages
as they are not really useful.

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0cf73780
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -407,13 +407,13 @@ int rndis_filter_receive(struct net_device *ndev,

	/* Make sure the rndis device state is initialized */
	if (unlikely(!rndis_dev)) {
		netif_err(net_device_ctx, rx_err, ndev,
		netif_dbg(net_device_ctx, rx_err, ndev,
			  "got rndis message but no rndis device!\n");
		return NVSP_STAT_FAIL;
	}

	if (unlikely(rndis_dev->state == RNDIS_DEV_UNINITIALIZED)) {
		netif_err(net_device_ctx, rx_err, ndev,
		netif_dbg(net_device_ctx, rx_err, ndev,
			  "got rndis message uninitialized\n");
		return NVSP_STAT_FAIL;
	}