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:
parent
ea02b93eea
commit
e79f7135af
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue