ntdll: Don't produce unreachable code during conditional compilation. Found by Smatch.

This commit is contained in:
Michael Stefaniuc 2007-07-18 22:21:49 +02:00 committed by Alexandre Julliard
parent 2785395080
commit 0f14b3a574
2 changed files with 6 additions and 3 deletions

View File

@ -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
}
/******************************************************************

View File

@ -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
}