Return success when trying to close a NULL device.

This commit is contained in:
Jef Driesen 2007-12-07 12:17:35 +00:00
parent 4a8c15dafe
commit e67d470c11

View File

@ -97,7 +97,7 @@ int
suunto_vyper_close (vyper *device)
{
if (device == NULL)
return SUUNTO_VYPER_ERROR;
return SUUNTO_VYPER_SUCCESS;
// Close the device.
if (serial_close (device->port) == -1) {