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: v3.2-rc1~169^2^2~864^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0293e5cabcd9067f35a64575922470b92d642d0e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 ad1ef03..0b8ac1a 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; }