Merged in dagar/nuttx/pr-net_telnet_unused (pull request #807)

drivers telnet common_ioctl() - inode only used with CONFIG_TELNET_SUPPORT_NAWS

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
Daniel Agar 2019-01-07 14:19:48 +00:00 committed by GregoryN
parent 8e7f8bbde3
commit efb42f4e25

View File

@ -1117,8 +1117,8 @@ static int telnet_poll(FAR struct file *filep, FAR struct pollfd *fds,
static int common_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
FAR struct inode *inode = filep->f_inode;
#ifdef CONFIG_TELNET_SUPPORT_NAWS
FAR struct inode *inode = filep->f_inode;
FAR struct telnet_dev_s *priv = inode->i_private;
#endif
int ret;