From c85220c63ab3dc511367f6084de26423c392673c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 30 Jun 2009 15:34:08 +0000 Subject: [PATCH] * This fixes my last change... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31334 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/unistd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tools/fs_shell/unistd.cpp b/src/tools/fs_shell/unistd.cpp index be2f937c48..bcc5bcd930 100644 --- a/src/tools/fs_shell/unistd.cpp +++ b/src/tools/fs_shell/unistd.cpp @@ -195,18 +195,18 @@ fssh_ioctl(int fd, unsigned long op, ...) geometry->sectors_per_track = hdGeometry.sectors; error = B_OK; } - - if (error == B_OK) { - // TODO: Get the real values... - geometry->bytes_per_sector = blockSize; - geometry->device_type = FSSH_B_DISK; - geometry->removable = false; - geometry->read_only = false; - geometry->write_once = false; - } } else error = errno; + if (error == B_OK) { + // TODO: Get the real values... + geometry->bytes_per_sector = blockSize; + geometry->device_type = FSSH_B_DISK; + geometry->removable = false; + geometry->read_only = false; + geometry->write_once = false; + } + #elif HAIKU_HOST_PLATFORM_FREEBSD { // FreeBSD has not block devices