aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@kodi.tv>2015-07-05 07:52:19 +0200
committerMatthias Kortstiege <mkortstiege@kodi.tv>2015-07-07 22:21:58 +0200
commit42ec0662a079be4884a3111e2380eb99c1275296 (patch)
tree3a8ff5fc082b2a1aec248eeb7be35077aeb7399f /lib
parent73bfc9508f7f1d36bd6b7f1b7c2cbbbdcb4acf47 (diff)
fix a few coverity warnings
Diffstat (limited to 'lib')
-rwxr-xr-xlib/libexif/ExifParse.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libexif/ExifParse.cpp b/lib/libexif/ExifParse.cpp
index 64bb815ced..4b230f7fb3 100755
--- a/lib/libexif/ExifParse.cpp
+++ b/lib/libexif/ExifParse.cpp
@@ -507,10 +507,7 @@ void CExifParse::ProcessDir(const unsigned char* const DirStart,
// Tends to be less accurate as distance increases.
{
float distance = (float)ConvertAnyFormat(ValuePtr, Format);
- if (distance < 0)
- m_ExifInfo->Distance = distance; // infinite
- else
- m_ExifInfo->Distance = distance;
+ m_ExifInfo->Distance = distance;
}
break;