Code clean up

Small modifications inserted too.
diff --git a/st21nfc/adaptation/config.cpp b/st21nfc/adaptation/config.cpp
index 71b4e2b..1ef8319 100644
--- a/st21nfc/adaptation/config.cpp
+++ b/st21nfc/adaptation/config.cpp
@@ -234,6 +234,7 @@
           state = NUM_VALUE;
           base = 10;
           numValue = getDigitValue(c, base);
+          i=0;
           break;
         } else if (c != '\n' && c != '\r') {
           state = END_LINE;
@@ -579,8 +580,7 @@
   size_t len = l;
   CNfcConfig& rConfig = CNfcConfig::GetInstance();
 
-  bool b = rConfig.getValue(name, pValue, len);
-  return b ? len : 0;
+  return rConfig.getValue(name, pValue, len);
 }
 
 /*******************************************************************************