X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fzfs.c;h=9c237a5758d430e15f7d808de6851e2e5c7697c6;hb=4af2a33ee5b91223f993af9bb0de1a081090634b;hp=6913043d7f408c61a11d216b6ccfedc85c63a53a;hpb=5619295995e3262bb5770e8b5e945ffdc5442145;p=oweals%2Fu-boot.git diff --git a/cmd/zfs.c b/cmd/zfs.c index 6913043d7f..9c237a5758 100644 --- a/cmd/zfs.c +++ b/cmd/zfs.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * * ZFS filesystem porting to Uboot by @@ -5,14 +6,13 @@ * * zfsfs support * made from existing GRUB Sources by Sun, GNU and others. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include #include #include +#include #include #include #include @@ -40,7 +40,6 @@ static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] ulong addr = 0; disk_partition_t info; struct blk_desc *dev_desc; - char buf[12]; unsigned long count; const char *addr_str; struct zfs_file zfile; @@ -112,7 +111,7 @@ static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] zfs_close(&zfile); /* Loading ok, update default load address */ - load_addr = addr; + image_load_addr = addr; printf("%llu bytes read\n", zfile.size); env_set_hex("filesize", zfile.size);