logging: backend: uart: fix coverity warning

This commit is to fix a warning which is reported in Coverity scan
after device runtime pm is enabled.

Signed-off-by: Roger Wang <roger1.wang@intel.com>
This commit is contained in:
Roger Wang 2024-05-23 11:21:56 +08:00 committed by Anas Nashif
parent ea02b93eea
commit e79f7135af

View file

@ -189,7 +189,7 @@ static void panic(struct log_backend const *const backend)
/* Ensure that the UART device is in active mode */
#if defined(CONFIG_PM_DEVICE_RUNTIME)
pm_device_runtime_get(uart_dev);
(void)pm_device_runtime_get(uart_dev);
#elif defined(CONFIG_PM_DEVICE)
enum pm_device_state pm_state;
int rc;