mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-14 07:13:28 +08:00
10c398d6e4
The U_BOOT_CMD_COMPLETE() macro has a semicolon at the end, perhaps inadvertently. Some code has taken advantage of this. Tidy this up by dropping the semicolon from the macro and adding it to macro invocations as required. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
28 lines
558 B
C
28 lines
558 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* 2017 by Marek Behún <kabel@kernel.org>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
#include <btrfs.h>
|
|
#include <fs.h>
|
|
|
|
int do_btrsubvol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|
{
|
|
if (argc != 3)
|
|
return CMD_RET_USAGE;
|
|
|
|
if (fs_set_blk_dev(argv[1], argv[2], FS_TYPE_BTRFS))
|
|
return 1;
|
|
|
|
btrfs_list_subvols();
|
|
return 0;
|
|
}
|
|
|
|
U_BOOT_CMD(btrsubvol, 3, 1, do_btrsubvol,
|
|
"list subvolumes of a BTRFS filesystem",
|
|
"<interface> <dev[:part]>\n"
|
|
" - List subvolumes of a BTRFS filesystem."
|
|
);
|