Staging: hv: netvsc: Get rid of an unnecessary print statement in netvsc_probe()
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 25 Aug 2011 16:49:00 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 22:23:19 +0000 (15:23 -0700)
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 <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c

index ad1ef038ff7f5d1882f84521a578ad6cdce1f5e1..0b8ac1abe1a75511c69ae67bc17c9857c96cf6e3 100644 (file)
@@ -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;
        }