port-serial-at: skip validating input subsystem argument
This check is pointless given that we're not implementing API, if anything it should be an assert. Anyway, just get rid of it, so that we don't need to update it on every new subsystem we add as supported.
This commit is contained in:
@@ -529,17 +529,13 @@ config (MMPortSerial *_self)
|
||||
/*****************************************************************************/
|
||||
|
||||
MMPortSerialAt *
|
||||
mm_port_serial_at_new (const char *name,
|
||||
MMPortSubsys subsys)
|
||||
mm_port_serial_at_new (const char *name,
|
||||
MMPortSubsys subsys)
|
||||
{
|
||||
g_return_val_if_fail (subsys == MM_PORT_SUBSYS_TTY ||
|
||||
subsys == MM_PORT_SUBSYS_USBMISC ||
|
||||
subsys == MM_PORT_SUBSYS_UNIX, NULL);
|
||||
|
||||
return MM_PORT_SERIAL_AT (g_object_new (MM_TYPE_PORT_SERIAL_AT,
|
||||
MM_PORT_DEVICE, name,
|
||||
MM_PORT_SUBSYS, subsys,
|
||||
MM_PORT_TYPE, MM_PORT_TYPE_AT,
|
||||
MM_PORT_TYPE, MM_PORT_TYPE_AT,
|
||||
NULL));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user