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:
Fredrik Holmqvist
2010-12-28 11:59:34 +00:00
parent 3c0241d8b5
commit ec349ca3bb
@@ -786,7 +786,6 @@ load_driver_settings(const char *driverName)
#ifdef _KERNEL_MODE
mutex_unlock(&sLock);
#endif
close(file);
return NULL;
}