Author: tqh Date: 2010-12-28 12:59:34 +0100 (Tue, 28 Dec 2010) New Revision: 39975 Changeset: http://dev.haiku-os.org/changeset/39975 Modified: haiku/trunk/src/system/libroot/os/driver_settings.cpp Log: If there is an error opening the file (negative id) there is no need for close. CID 3474. Modified: haiku/trunk/src/system/libroot/os/driver_settings.cpp =================================================================== --- haiku/trunk/src/system/libroot/os/driver_settings.cpp 2010-12-28 11:23:40 UTC (rev 39974) +++ haiku/trunk/src/system/libroot/os/driver_settings.cpp 2010-12-28 11:59:34 UTC (rev 39975) @@ -786,7 +786,6 @@ #ifdef _KERNEL_MODE mutex_unlock(&sLock); #endif - close(file); return NULL; }