diff options
Diffstat (limited to 'drivers/usb/host/fotg210-hcd.c')
| -rw-r--r-- | drivers/usb/host/fotg210-hcd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 360a5e95abca..66efa9a67687 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c | |||
| @@ -4795,14 +4795,8 @@ static DEVICE_ATTR(uframe_periodic_max, 0644, show_uframe_periodic_max, | |||
| 4795 | static inline int create_sysfs_files(struct fotg210_hcd *fotg210) | 4795 | static inline int create_sysfs_files(struct fotg210_hcd *fotg210) |
| 4796 | { | 4796 | { |
| 4797 | struct device *controller = fotg210_to_hcd(fotg210)->self.controller; | 4797 | struct device *controller = fotg210_to_hcd(fotg210)->self.controller; |
| 4798 | int i = 0; | ||
| 4799 | 4798 | ||
| 4800 | if (i) | 4799 | return device_create_file(controller, &dev_attr_uframe_periodic_max); |
| 4801 | goto out; | ||
| 4802 | |||
| 4803 | i = device_create_file(controller, &dev_attr_uframe_periodic_max); | ||
| 4804 | out: | ||
| 4805 | return i; | ||
| 4806 | } | 4800 | } |
| 4807 | 4801 | ||
| 4808 | static inline void remove_sysfs_files(struct fotg210_hcd *fotg210) | 4802 | static inline void remove_sysfs_files(struct fotg210_hcd *fotg210) |
