Suppress undefined rwreset error in obmc-flash-bmc

This commit tweaks obmc-flash-bmc to suppress the error message
produced when the environment variable rwreset is undefined. In
context, this variable is checked to verify if a factory reset
should be performed. If the variable is not set, or if it's set
to anything other than true, we don't perform the reset - this is
not an error, so no need to log one to the journal.

Resolves openbmc/openbmc#2249

Change-Id: Ibe595f3ca879afc141bed2b7b186233ea2db9d14
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
index 60e976b..57b557f 100644
--- a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
+++ b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
@@ -82,7 +82,7 @@
   rw="${rwmtd#mtd}"
   ubidev="/dev/ubi${rw}"
 
-  if [ "$(fw_printenv rwreset)" == "rwreset=true" ]; then
+  if [ "$(fw_printenv rwreset 2>/dev/null)" == "rwreset=true" ]; then
     ubi_remove "${name}"
     fw_setenv rwreset
   fi