提交 1ee95216 编写于 作者: G Greg Kroah-Hartman

USB: fix __must_check warnings in drivers/usb/host/

Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 657b6717
...@@ -785,10 +785,11 @@ static CLASS_DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL); ...@@ -785,10 +785,11 @@ static CLASS_DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL);
static inline void create_debug_files (struct ehci_hcd *ehci) static inline void create_debug_files (struct ehci_hcd *ehci)
{ {
struct class_device *cldev = ehci_to_hcd(ehci)->self.class_dev; struct class_device *cldev = ehci_to_hcd(ehci)->self.class_dev;
int retval;
class_device_create_file(cldev, &class_device_attr_async); retval = class_device_create_file(cldev, &class_device_attr_async);
class_device_create_file(cldev, &class_device_attr_periodic); retval = class_device_create_file(cldev, &class_device_attr_periodic);
class_device_create_file(cldev, &class_device_attr_registers); retval = class_device_create_file(cldev, &class_device_attr_registers);
} }
static inline void remove_debug_files (struct ehci_hcd *ehci) static inline void remove_debug_files (struct ehci_hcd *ehci)
......
...@@ -685,10 +685,11 @@ static CLASS_DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL); ...@@ -685,10 +685,11 @@ static CLASS_DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL);
static inline void create_debug_files (struct ohci_hcd *ohci) static inline void create_debug_files (struct ohci_hcd *ohci)
{ {
struct class_device *cldev = ohci_to_hcd(ohci)->self.class_dev; struct class_device *cldev = ohci_to_hcd(ohci)->self.class_dev;
int retval;
class_device_create_file(cldev, &class_device_attr_async); retval = class_device_create_file(cldev, &class_device_attr_async);
class_device_create_file(cldev, &class_device_attr_periodic); retval = class_device_create_file(cldev, &class_device_attr_periodic);
class_device_create_file(cldev, &class_device_attr_registers); retval = class_device_create_file(cldev, &class_device_attr_registers);
ohci_dbg (ohci, "created debug files\n"); ohci_dbg (ohci, "created debug files\n");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册