net: remove some unless free on failure in alloc_netdev_mqs()
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 4 Jun 2014 00:11:54 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 02:18:58 +0000 (19:18 -0700)
commit92ff71b8fe9cd9c673615fc6f3870af7376d7c84
treef2529e59bccc3be83b4f1948124efcf81315ec5a
parent1b9d48f2a5794248fef45540961d047b30655bb3
net: remove some unless free on failure in alloc_netdev_mqs()

When we jump to free_pcpu on failure in alloc_netdev_mqs()
rx and tx queues are not yet allocated, so no need to free them.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c