From: K. Y. Srinivasan Date: Thu, 25 Aug 2011 16:49:00 +0000 (-0700) Subject: Staging: hv: netvsc: Get rid of an unnecessary print statement in netvsc_probe() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0293e5cabcd9067f35a64575922470b92d642d0e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: netvsc: Get rid of an unnecessary print statement in netvsc_probe() Get rid of an unnecessary print statement in netvsc_probe(). Furthermore, this fixes a bug since netdev_err is being invoked after the device has been freed. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index ad1ef038ff7f..0b8ac1abe1a7 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -355,8 +355,6 @@ static int netvsc_probe(struct hv_device *dev) if (ret != 0) { free_netdev(net); dev_set_drvdata(&dev->device, NULL); - - netdev_err(net, "unable to add netvsc device (ret %d)\n", ret); return ret; }