Re: [PATCH 3/4] uboot_mtd: Remove unused variable declaration

4 views
Skip to first unread message

Stefano Babic

unread,
Sep 19, 2025, 12:25:21 PM (12 days ago) Sep 19
to Alexander Dahl, swup...@googlegroups.com


On 9/19/25 08:42, Alexander Dahl wrote:
> gcc warns about this:
>
> [ 16%] Building C object src/CMakeFiles/ubootenv.dir/uboot_mtd.c.o
> .../src/uboot_mtd.c: In function 'libubootenv_ubi_update_name':
> .../src/uboot_mtd.c:225:21: warning: unused variable 'st' [-Wunused-variable]
>
> Signed-off-by: Alexander Dahl <a...@thorsis.com>
> ---
> src/uboot_mtd.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/uboot_mtd.c b/src/uboot_mtd.c
> index 24e817d..7a946b4 100644
> --- a/src/uboot_mtd.c
> +++ b/src/uboot_mtd.c
> @@ -222,7 +222,6 @@ int libubootenv_ubi_update_name(struct uboot_flash_env *dev)
> char device[DEVNAME_MAX_LENGTH];
> char volume[VOLNAME_MAX_LENGTH];
> int dev_id, vol_id, fd, ret = -EBADF;
> - struct stat st;
> char *sep;
>
> if (!strncmp(dev->devname, DEVICE_MTD_NAME, strlen(DEVICE_MTD_NAME)))

Reviewed-by: Stefano Babic <stefan...@swupdate.org>
Reply all
Reply to author
Forward
0 new messages