summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_error_transl.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sal/osl/unx/file_error_transl.cxx b/sal/osl/unx/file_error_transl.cxx
index 2ebebe006889..4dfa11883352 100644
--- a/sal/osl/unx/file_error_transl.cxx
+++ b/sal/osl/unx/file_error_transl.cxx
@@ -27,16 +27,12 @@ oslFileError oslTranslateFileError(int Errno)
OSL_ENSURE(0 != Errno, "oslTranslateFileError strange input combination!");
- /* Have a look at file_error_transl.hxx for
- the reason that we do this here */
- if (Errno == 0)
- return osl_error;
-
switch(Errno)
{
case 0:
- osl_error = osl_File_E_None;
- break;
+ /* Have a look at file_error_transl.hxx for
+ the reason that we do this here */
+ return osl_error;
case EPERM:
osl_error = osl_File_E_PERM;