Commit e79f7135 authored by Roger Wang's avatar Roger Wang Committed by Anas Nashif
Browse files

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: default avatarRoger Wang <roger1.wang@intel.com>
parent ea02b93e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;