diff options
| author | Felipe Balbi <balbi@ti.com> | 2013-03-05 06:25:36 -0500 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2013-03-05 06:25:36 -0500 |
| commit | e574d5708156585ee506b7f914ed4a55a319d294 (patch) | |
| tree | 75e9fa67ab48366ed956b63aacbbbb162b3787ec | |
| parent | 341a71c790529140fc5f8833f893324f6b5261cc (diff) | |
usb: musb: fix compile warning
When running 100 randconfig iterations, I found
the following warning:
drivers/usb/musb/musb_core.c: In function ‘musb_init_controller’:
drivers/usb/musb/musb_core.c:1981:1: warning: label ‘fail5’ defined \
but not used [-Wunused-label]
this patch fixes it by removing the unnecessary
ifdef CONFIG_SYSFS.
Signed-off-by: Felipe Balbi <balbi@ti.com>
| -rw-r--r-- | drivers/usb/musb/musb_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 60b41cc28da4..13382e053d59 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
| @@ -1968,11 +1968,9 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) | |||
| 1968 | if (status < 0) | 1968 | if (status < 0) |
| 1969 | goto fail4; | 1969 | goto fail4; |
| 1970 | 1970 | ||
| 1971 | #ifdef CONFIG_SYSFS | ||
| 1972 | status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group); | 1971 | status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group); |
| 1973 | if (status) | 1972 | if (status) |
| 1974 | goto fail5; | 1973 | goto fail5; |
| 1975 | #endif | ||
| 1976 | 1974 | ||
| 1977 | pm_runtime_put(musb->controller); | 1975 | pm_runtime_put(musb->controller); |
| 1978 | 1976 | ||
