bridge: Consolidate error paths in br_add_bridge().
commite340a90e6e07bba6e6b3fc39dd5fa76f95579d7c
authorPavel Emelyanov <xemul@openvz.org>
Mon, 5 May 2008 00:58:07 +0000 (4 17:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2008 00:58:07 +0000 (4 17:58 -0700)
tree68f1448c762d217bbed95c49b5da85c1151b278b
parentc37aa90b0458d87342e0bb083f6bf7d113220d09
bridge: Consolidate error paths in br_add_bridge().

This actually had to be merged with the patch #1, but I decided not to
mix two changes in one patch.

There are already two calls to free_netdev() in there, so merge them
into one.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c