device: compare port type first in DeviceConfigOverlaps()
commit3335273f885a990f5b036634cf8b7edc7d9680f8
authorMax Kellermann <max@duempel.org>
Mon, 29 Apr 2013 20:13:24 +0000 (29 22:13 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 29 Apr 2013 20:30:17 +0000 (29 22:30 +0200)
tree95a5dea5e52ca52b100cbdfa576d7ebb35dfdb62
parent4ab8384e3890907b0e9fe984d7868ee55d5a7f45
device: compare port type first in DeviceConfigOverlaps()

Simplifies the function by reducing duplicate code.  The PortType::PTY
case was broken because the type comparison was hard-coded to
PortType::SERIAL.
src/Device/device.cpp