]> git.proxmox.com Git - mirror_qemu.git/commit - block/nfs.c
util/uri: do not check argument of uri_free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 29 Jun 2021 06:36:02 +0000 (08:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 10:26:05 +0000 (12:26 +0200)
commitc2615bdfbd6d5a1a48438102f8ab328fe30b8e27
tree39b064cf8a99123401486c8652591e144e85160e
parenteb06cbab7e92caf15033c91dfcacd2ba5d7bc88a
util/uri: do not check argument of uri_free()

uri_free() checks if its argument is NULL in uri_clean() and g_free().
There is no need to check the argument before the call.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Message-Id: <20210629063602.4239-1-xypron.glpk@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nfs.c
block/ssh.c
util/uri.c