mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:43:38 +00:00
ntdll: Don't produce unreachable code during conditional compilation. Found by Smatch.
This commit is contained in:
parent
2785395080
commit
0f14b3a574
|
@ -1036,9 +1036,10 @@ static NTSTATUS CDROM_Verify(int dev, int fd)
|
|||
return STATUS_SUCCESS;
|
||||
else
|
||||
return STATUS_NO_MEDIA_IN_DEVICE;
|
||||
#endif
|
||||
#else
|
||||
FIXME("not implemented for non-linux\n");
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
|
|
|
@ -493,9 +493,10 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
|
|||
port.c_cflag |= B38400;
|
||||
}
|
||||
break;
|
||||
#endif /* Don't have linux/serial.h or lack TIOCSSERIAL */
|
||||
#else /* Don't have linux/serial.h or lack TIOCSSERIAL */
|
||||
ERR("baudrate %d\n", sbr->BaudRate);
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
#endif /* Don't have linux/serial.h or lack TIOCSSERIAL */
|
||||
}
|
||||
#elif !defined(__EMX__)
|
||||
switch (sbr->BaudRate)
|
||||
|
@ -911,9 +912,10 @@ static NTSTATUS get_irq_info(int fd, serial_irq_info *irq_info)
|
|||
}
|
||||
TRACE("TIOCGICOUNT err %s\n", strerror(errno));
|
||||
return FILE_GetNtStatus();
|
||||
#endif
|
||||
#else
|
||||
memset(irq_info,0, sizeof(serial_irq_info));
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue