nrf52_serial.c: fix unused wariable warning

This commit is contained in:
raiden00pl 2020-09-29 16:48:27 +02:00 committed by Alan Carvalho de Assis
parent 35a5036e32
commit 4da122b8d4

View File

@ -454,10 +454,12 @@ void nrf52_set_format(struct uart_dev_s *dev)
static int nrf52_ioctl(struct file *filep, int cmd, unsigned long arg)
{
#ifdef CONFIG_SERIAL_TERMIOS
struct inode *inode = filep->f_inode;
struct uart_dev_s *dev = inode->i_private;
struct nrf52_dev_s *priv = (struct nrf52_dev_s *)dev->priv;
struct uart_config_s *config = &priv->config;
#endif
int ret = OK;
switch (cmd)