summaryrefslogtreecommitdiff
path: root/nuttx/arch/z16/src/z16f
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-31 23:45:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-31 23:45:21 +0000
commit4a16b1826cafc353fa90826cbd4416476f1ea682 (patch)
tree323f6bd35c6522a6c72895c19f536742f822f54e /nuttx/arch/z16/src/z16f
parent505963a3568ba0dc23cb0cb7b3efee58f83a49ea (diff)
downloadpx4-nuttx-4a16b1826cafc353fa90826cbd4416476f1ea682.tar.gz
px4-nuttx-4a16b1826cafc353fa90826cbd4416476f1ea682.tar.bz2
px4-nuttx-4a16b1826cafc353fa90826cbd4416476f1ea682.zip
LPC17xx serial now supports minimal termios ioctls; serial driver ioctl methods should not set errno variable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4994 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16/src/z16f')
-rw-r--r--nuttx/arch/z16/src/z16f/z16f_serial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/arch/z16/src/z16f/z16f_serial.c b/nuttx/arch/z16/src/z16f/z16f_serial.c
index 42c814737..3673484ae 100644
--- a/nuttx/arch/z16/src/z16f/z16f_serial.c
+++ b/nuttx/arch/z16/src/z16f/z16f_serial.c
@@ -519,8 +519,7 @@ static int z16f_txinterrupt(int irq, void *context)
static int z16f_ioctl(struct file *filep, int cmd, unsigned long arg)
{
- *get_errno_ptr() = ENOTTY;
- return ERROR;
+ return -ENOTTY;
}
/****************************************************************************