diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-08-03 11:56:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-08-03 11:56:27 +0000 |
commit | 18e37d8caf20bac2311561349bee35ed82bb8331 (patch) | |
tree | 5ee7e1edc73baa2e0348a56ea1b206dd94c6c573 /package/kernel/gpio-button-hotplug | |
parent | 4281026dda5fa10857aae302405baa3ee5fae0d1 (diff) | |
download | mtk-20170518-18e37d8caf20bac2311561349bee35ed82bb8331.zip mtk-20170518-18e37d8caf20bac2311561349bee35ed82bb8331.tar.gz mtk-20170518-18e37d8caf20bac2311561349bee35ed82bb8331.tar.bz2 |
gpio-button-hotplug: cleanup, fix compiler warning
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37665
Diffstat (limited to 'package/kernel/gpio-button-hotplug')
-rw-r--r-- | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c index 012cd22..487c813 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -128,6 +128,7 @@ static int bh_event_add_var(struct bh_event *event, int argv, static int button_hotplug_fill_event(struct bh_event *event) { + char *s; int ret; ret = bh_event_add_var(event, 0, "HOME=%s", "/"); @@ -139,14 +140,11 @@ static int button_hotplug_fill_event(struct bh_event *event) if (ret) return ret; - char *s; switch (event->type) { - case EV_KEY: - s = "button"; - break; case EV_SW: s = "switch"; break; + case EV_KEY: default: s = "button"; break; |