Redefinition of err was shadowing outer definition
Redefinition of err was shadowing outer definition

 - the err check at the end of the function was not seeing any errors
   from this block.
 - found by the metalint.

intel-hpdd/lemur,intel-hpdd/lemur,intel-hpdd/lemur,intel-hpdd/lemur,intel-hpdd/lemur,intel-hpdd/lemur