diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 16:07:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 18:12:06 +0000 |
commit | fac0a3b9522d08b1fb60ee25999ecd4577495ac9 (patch) | |
tree | d566c9cdc550ba22e13ae9bf0954715a317fee22 /svl | |
parent | e57401aeb0b3eccb1178b941515c398675a1a43f (diff) |
coverity#704312 Logically dead code
Change-Id: Iba394b382ad072593e2b646f1243169bced82ddf
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index 03beb02370b2..a55a0faa683d 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -328,8 +328,7 @@ SvLockBytesInputStream::readSomeBytes(uno::Sequence< sal_Int8 > & rData, { nError = m_xLockBytes->ReadAt(m_nPosition, rData.getArray(), - nMaxBytesToRead < 0 ? - 0 : nMaxBytesToRead, + nMaxBytesToRead, &nCount); if (nError != ERRCODE_NONE && nError != ERRCODE_IO_PENDING) throw io::IOException(); |