Check for empty return code list on adding
Check for empty return code list on adding

Move the check for an empty return code list for sensor removal to
within the function that adds the return codes per sensor. This
eliminates the need to check for an empty return code list prior to
calling this function.

Tested:
    Empty return code sensor removal list is handled

Change-Id: Icdf3692cd79b3198d90ad8c0688104e4a8040186
Signed-off-by: Matthew Barth <76a4069b1098781bef2e2b6fa2d90fe40aa24503@us.ibm.com>

openbmc/phosphor-hwmon,openbmc/phosphor-hwmon