]> www.infradead.org Git - users/dwmw2/qemu.git/commit
backends/rng-random: Get rid of qemu_open_old()
authorZhao Liu <zhao1.liu@intel.com>
Mon, 15 Jul 2024 08:21:55 +0000 (16:21 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 Jul 2024 11:04:15 +0000 (14:04 +0300)
commit18f3a07b206b228b041c260d48df393111c8299b
tree6bb0bbff545d90217fc500ec7c9c9c798a410b02
parent47cd2f1a360196beb9769a2636ccdd3ae9d0370f
backends/rng-random: Get rid of qemu_open_old()

For qemu_open_old(), osdep.h said:

> Don't introduce new usage of this function, prefer the following
> qemu_open/qemu_create that take an "Error **errp".

So replace qemu_open_old() with qemu_open(). And considering
rng_random_opened() will lose its obvious error handling case after
removing error_setg_file_open(), add comment to remind here.

Cc: Laurent Vivier <lvivier@redhat.com>
Cc: Amit Shah <amit@kernel.org>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
(mjt: drop superfluous commit as suggested by philmd)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
backends/rng-random.c