Home
last modified time | relevance | path

Searched hist:"18 f3a07b206b228b041c260d48df393111c8299b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/backends/
H A Drng-random.cdiff 18f3a07b206b228b041c260d48df393111c8299b Mon Jul 15 03:21:55 CDT 2024 Zhao Liu <zhao1.liu@intel.com> 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>