Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bridge: use kobj_to_dev instead of to_dev

kobj_to_dev has been defined in linux/device.h, so I replace to_dev
with it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Geliang Tang and committed by
David S. Miller
aeb7ed14 8099c9ed

+1 -2
+1 -2
net/bridge/br_sysfs_br.c
··· 22 22 23 23 #include "br_private.h" 24 24 25 - #define to_dev(obj) container_of(obj, struct device, kobj) 26 25 #define to_bridge(cd) ((struct net_bridge *)netdev_priv(to_net_dev(cd))) 27 26 28 27 /* ··· 813 814 struct bin_attribute *bin_attr, 814 815 char *buf, loff_t off, size_t count) 815 816 { 816 - struct device *dev = to_dev(kobj); 817 + struct device *dev = kobj_to_dev(kobj); 817 818 struct net_bridge *br = to_bridge(dev); 818 819 int n; 819 820