summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-01-04 08:50:24 -0500
committerTom Rini <[email protected]>2023-01-04 08:50:24 -0500
commit8d6cbf5e6bc4e10e38b954763fa025caed517cc2 (patch)
treeb4897b417188cf4df17a2ce7b39e71cedf18a54a /cmd
parent582e3c9fb2337c2f49faa73ac86dde25f4d56901 (diff)
parent60bba6e2052c281afe401247e10aebcb4c17049b (diff)
Merge tag 'efi-2023-01-rc5-3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2023-01-rc5-3 Documentation: * Describe building documentation UEFI: * Add .data section to aarch64 EFI binaries and correct section flags * Correct sorting of capsules when updating * Populate console handles in system table Other: * Fix description of eth_env_[gs]et_enetaddr() return value * Avoid endless loop in sound play command
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sound.c b/cmd/sound.c
index cef71be5e34..0b7f9599716 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;