Skip to content

Commit 32fa270

Browse files
committed
Revert "bridge: Fix incorrect variable assignment on error path in br_sysfs_addbr"
This reverts commit c862cc9. Patch lacks a real-name Signed-off-by. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 529927f commit 32fa270

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/bridge/br_sysfs_br.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ int br_sysfs_addbr(struct net_device *dev)
870870

871871
br->ifobj = kobject_create_and_add(SYSFS_BRIDGE_PORT_SUBDIR, brobj);
872872
if (!br->ifobj) {
873-
err = -EINVAL;
874873
pr_info("%s: can't add kobject (directory) %s/%s\n",
875874
__func__, dev->name, SYSFS_BRIDGE_PORT_SUBDIR);
876875
goto out3;

0 commit comments

Comments
 (0)