If there is an error opening the file (negative id) there is no need for close. CID 3474.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -786,7 +786,6 @@ load_driver_settings(const char *driverName)
|
||||
#ifdef _KERNEL_MODE
|
||||
mutex_unlock(&sLock);
|
||||
#endif
|
||||
close(file);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user