]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/main.c
linux-user: remove useless variable
authorLaurent Vivier <laurent@vivier.eu>
Sun, 14 Jul 2019 13:40:27 +0000 (15:40 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 10 Sep 2019 08:28:50 +0000 (10:28 +0200)
commit9d3019bce39efd32f54d31d4aedef27a31a15c24
treeeb9b8be053427e6ee1451a08a520c93b758a188a
parent89ea03a7dc83ca36b670ba7f787802791fcb04b1
linux-user: remove useless variable

filename is only used to open the file if AT_EXECFD is not provided.
But exec_path already contains the path of the file to open.
Remove filename as it is only used in main.c whereas exec_path is
also used in syscall.c.

Fixes: d088d664f201 ("linux-user: identify running binary in /proc/self/exe")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190714134028.315-1-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/main.c