Skip to content
Commit 2abfccb3 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

driver: uart: ns16550: Simplify drv_cmd function



There is only one possible command, so just use if instead of switch
to avoid several MISRA-C violations and also avoid set dev_data wrongly
unused when UART_NS16550_DLF_ENABLED is defined.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 661035a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment