diff options
Diffstat (limited to 'commands/trigger.c')
-rw-r--r-- | commands/trigger.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/commands/trigger.c b/commands/trigger.c index 0dd3b346fa..d2802080b9 100644 --- a/commands/trigger.c +++ b/commands/trigger.c @@ -1,22 +1,7 @@ -/* - * LED trigger command support for barebox - * - * (C) Copyright 2010 Sascha Hauer, Pengutronix - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ +// SPDX-License-Identifier: GPL-2.0-or-later +// SPDX-FileCopyrightText: © 2010 Sascha Hauer, Pengutronix + +/* LED trigger command support for barebox */ #include <common.h> #include <led.h> @@ -31,7 +16,7 @@ static int do_trigger(int argc, char *argv[]) { - struct led *led = NULL; + struct led *led; int opt, ret = 0; int cmd = LED_COMMAND_SHOW_INFO; enum led_trigger trigger; @@ -50,9 +35,6 @@ static int do_trigger(int argc, char *argv[]) } } - if (optind < argc) - led = led_by_name_or_number(argv[optind]); - switch (cmd) { case LED_COMMAND_SHOW_INFO: led_triggers_show_info(); |