fix for code static analyze

It's fix for issue reported by code statuc analyze,
the index of array should be less than maxDirEntries,
being equal to maxDirEntries should also be illegal.

Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
Change-Id: Ib83b06262bb33cf6c76b919ce0d6c2fa34a82366
diff --git a/src/mdrv2.cpp b/src/mdrv2.cpp
index cd24f1e..00fbdcc 100644
--- a/src/mdrv2.cpp
+++ b/src/mdrv2.cpp
@@ -66,7 +66,7 @@
 bool MDR_V2::smbiosIsAvailForUpdate(uint8_t index)
 {
     bool ret = false;
-    if (index > maxDirEntries)
+    if (index >= maxDirEntries)
     {
         return ret;
     }