diff --git a/src/add-ons/kernel/partitioning_systems/session/session.cpp b/src/add-ons/kernel/partitioning_systems/session/session.cpp index a8a1637d20..89489a8303 100644 --- a/src/add-ons/kernel/partitioning_systems/session/session.cpp +++ b/src/add-ons/kernel/partitioning_systems/session/session.cpp @@ -54,14 +54,10 @@ identify_partition(int fd, partition_data *partition, void **cookie) if (disc != NULL && disc->InitCheck() == B_OK) { // If we have only a single session then we can let the file system // drivers play directly with the device. - Session *session = disc->GetSession(1); - if (session != NULL) { + if (disc->GetSession(1) != NULL) result = 0.9f; - delete session; - } else result = 0.1f; - *cookie = static_cast(disc); } else delete disc;