diff options
Diffstat (limited to 'nuttx/arch/z80/src/z8')
-rwxr-xr-x | nuttx/arch/z80/src/z8/z8_serial.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } /**************************************************************************** |