summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src')
-rw-r--r--nuttx/arch/z80/src/ez80/ez80_serial.c3
-rwxr-xr-xnuttx/arch/z80/src/z8/z8_serial.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_serial.c b/nuttx/arch/z80/src/ez80/ez80_serial.c
index c6631c47a..e2f9b0294 100644
--- a/nuttx/arch/z80/src/ez80/ez80_serial.c
+++ b/nuttx/arch/z80/src/ez80/ez80_serial.c
@@ -525,8 +525,7 @@ static int ez80_interrrupt(int irq, void *context)
static int ez80_ioctl(struct file *filep, int cmd, unsigned long arg)
{
- *get_errno_ptr() = ENOTTY;
- return ERROR;
+ return -ENOTTY;
}
/****************************************************************************
diff --git a/nuttx/arch/z80/src/z8/z8_serial.c b/nuttx/arch/z80/src/z8/z8_serial.c
index eb7305bbc..1e7534bdd 100755
--- a/nuttx/arch/z80/src/z8/z8_serial.c
+++ b/nuttx/arch/z80/src/z8/z8_serial.c
@@ -581,8 +581,7 @@ static int z8_txinterrupt(int irq, FAR void *context)
static int z8_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
- *get_errno_ptr() = ENOTTY;
- return ERROR;
+ return -ENOTTY;
}
/****************************************************************************