mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
usb/host/fotg210: remove dead code in create_sysfs_files
The goto in create_sysfs_files is never executed, so remove it and clean up the code. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ef23db9c5e
commit
9f3b3f6a30
1 changed files with 1 additions and 7 deletions
|
@ -4795,14 +4795,8 @@ static DEVICE_ATTR(uframe_periodic_max, 0644, show_uframe_periodic_max,
|
||||||
static inline int create_sysfs_files(struct fotg210_hcd *fotg210)
|
static inline int create_sysfs_files(struct fotg210_hcd *fotg210)
|
||||||
{
|
{
|
||||||
struct device *controller = fotg210_to_hcd(fotg210)->self.controller;
|
struct device *controller = fotg210_to_hcd(fotg210)->self.controller;
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
if (i)
|
return device_create_file(controller, &dev_attr_uframe_periodic_max);
|
||||||
goto out;
|
|
||||||
|
|
||||||
i = device_create_file(controller, &dev_attr_uframe_periodic_max);
|
|
||||||
out:
|
|
||||||
return i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void remove_sysfs_files(struct fotg210_hcd *fotg210)
|
static inline void remove_sysfs_files(struct fotg210_hcd *fotg210)
|
||||||
|
|
Loading…
Reference in a new issue