diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 16:26:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-25 08:00:33 +0300 |
commit | 69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (patch) | |
tree | ff533014371e8692fe7a973194de09f8805ba0d2 /drivers/usb/core/usb.c | |
parent | aa742683bbea9f2faa28ec2f61745abf2ad86a9d (diff) | |
download | linux-69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d.tar.xz |
USB: core, devio: use to_usb_device
Use to_usb_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index ebb29caa3fe4..49b011f951b3 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -241,7 +241,7 @@ static int __each_dev(struct device *dev, void *data) if (!is_usb_device(dev)) return 0; - return arg->fn(container_of(dev, struct usb_device, dev), arg->data); + return arg->fn(to_usb_device(dev), arg->data); } /** |