projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up variable names (llif -> dev)
[project/netifd.git]
/
interface.c
diff --git
a/interface.c
b/interface.c
index
8be8727
..
ba7b5e5
100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-226,12
+226,12
@@
get_interface(const char *name)
}
void
}
void
-interface_remove_link(struct interface *iface, struct device *
llif
)
+interface_remove_link(struct interface *iface, struct device *
dev
)
{
{
- struct device *dev = iface->main_dev.dev;
+ struct device *
m
dev = iface->main_dev.dev;
- if (
dev &&
dev->hotplug_ops) {
-
dev->hotplug_ops->del(dev, llif
);
+ if (
mdev && m
dev->hotplug_ops) {
+
mdev->hotplug_ops->del(mdev, dev
);
return;
}
return;
}
@@
-239,17
+239,17
@@
interface_remove_link(struct interface *iface, struct device *llif)
}
int
}
int
-interface_add_link(struct interface *iface, struct device *
llif
)
+interface_add_link(struct interface *iface, struct device *
dev
)
{
{
- struct device *dev = iface->main_dev.dev;
+ struct device *
m
dev = iface->main_dev.dev;
- if (
dev &&
dev->hotplug_ops)
- return
dev->hotplug_ops->add(dev, llif
);
+ if (
mdev && m
dev->hotplug_ops)
+ return
mdev->hotplug_ops->add(mdev, dev
);
if (iface->main_dev.dev)
interface_remove_link(iface, NULL);
if (iface->main_dev.dev)
interface_remove_link(iface, NULL);
- add_device_user(&iface->main_dev,
llif
);
+ add_device_user(&iface->main_dev,
dev
);
return 0;
}
return 0;
}