summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-02 10:46:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-02 10:46:24 +0100
commitbcb5a3121d089c059b0293c4402c3617bbe3d131 (patch)
tree964c0563d24c0330224fedecaa7df0f5a887d41c /sal/osl
parent455e4011f7052c5d1fb4693a573e0998cf6badc8 (diff)
coverity#1420539: dead code
...after 0b413caadfbe68b278ca5ba33b6d204687586ea9 "loplugin:constantparam in sal,sax" Change-Id: Idf000bd1e0a261eac9ec0afbd2fb6f4c4ef8c7dc
Diffstat (limited to 'sal/osl')
-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;