stm32f0: usart: fix typo

This commit is contained in:
S.J.R. van Schaik 2017-07-18 15:06:20 +02:00
parent eaa61e50af
commit 963b713d46

View file

@ -132,7 +132,7 @@ static ssize_t usart_write(void *cookie, const char *buf, size_t n)
static int usart_get_irq_no(unsigned *irq_no, unsigned dev)
{
if (irq_no)
if (!irq_no)
return -1;
switch (dev) {