From 05261aa517e2fc1fb8599a231accab632ff31d90 Mon Sep 17 00:00:00 2001 From: Dmitry Bazhenov Date: Wed, 2 Aug 2017 13:09:48 +0500 Subject: 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 --- readeeprom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readeeprom.cpp b/readeeprom.cpp index 1b47cb8..ef7e559 100644 --- a/readeeprom.cpp +++ b/readeeprom.cpp @@ -34,7 +34,7 @@ int main(int argc, char **argv) } 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); -- cgit v1.2.1