summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/ez80/ez80_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_serial.c')
-rw-r--r--nuttx/arch/z80/src/ez80/ez80_serial.c3
1 files changed, 1 insertions, 2 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;
}
/****************************************************************************