read-eeprom: fix fruid_str empty check.
fruid_str argument value is not empty checked.
Instead, the eeprom_file value is checked twice.
This patch fixes the fruid_str empty check.
Change-Id: Iee54a882926eeec4460ff8d46689a23fe94b7651
Signed-off-by: Dmitry Bazhenov <bazhenov.dn@gmail.com>
diff --git a/readeeprom.cpp b/readeeprom.cpp
index 1b47cb8..ef7e559 100644
--- a/readeeprom.cpp
+++ b/readeeprom.cpp
@@ -34,7 +34,7 @@
}
auto fruid_str = (*cli_options)["fruid"];
- if (eeprom_file == ArgumentParser::empty_string)
+ if (fruid_str == ArgumentParser::empty_string)
{
// User has not passed in the appropriate argument value
exit_with_error("fruid data not found.", argv);