summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sound.c b/cmd/sound.c
index cef71be5e3..0b7f959971 100644
--- a/cmd/sound.c
+++ b/cmd/sound.c
@@ -48,12 +48,12 @@ static int do_play(struct cmd_tbl *cmdtp, int flag, int argc,
++argv;
while (argc || first) {
first = false;
- if (argc && *argv[0] != '-') {
+ if (argc) {
msec = dectoul(argv[0], NULL);
--argc;
++argv;
}
- if (argc && *argv[0] != '-') {
+ if (argc) {
freq = dectoul(argv[0], NULL);
--argc;
++argv;