Squashed commit of the following:

configs/z80sim and xtrs:  Serial driver lower halfs ioctl methods should return a negated errno value, not set the errno variable.

    drivers/wireless:  CC1101 driver not permitted to set errno.

    drivers/sensors:  LIS331DL driver not permitted to set errno.

    drivers/lcd: ILI9341 initialize method not permitted to set errno,

    drivers/serial: 16550 UART driver IOCTL method must not set errno; it must return a negated errno value.
This commit is contained in:
Gregory Nutt
2017-09-30 12:59:33 -06:00
parent c11345ad4b
commit 8394f9b60f
7 changed files with 43 additions and 68 deletions
+1 -2
View File
@@ -215,8 +215,7 @@ static void up_detach(FAR struct uart_dev_s *dev)
static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
*get_errno_ptr() = ENOTTY;
return ERROR;
return -ENOTTY;
}
/****************************************************************************