[BUGFIX] iwlwifi: always initialize len in iwl_uefi_get_reduced_power()

The len argument will only be left unset in
iwl_uefi_get_reduced_power() if there was an error.  If there was an
error, we set reduce_power_loaded to true and, if reduce_power_loaded
is true, iwl_trans_set_reduce_power() will not use len (because it
won't try to allocate the dma block).

But to make it safer and cleaner, initialize len to 0 at the
iwl_uefi_get_reduced_power(), so that it's set in all error
situations.

type=bugfix
fixes=I2e0bb142d2a9c412547cba89b62dd077b328fdc4
ticket=none

Change-Id: Icdcdab3ba5e3a47d3be3d2146a42ae4102c33980
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/314637
automatic-review: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Tested-by: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
x-iwlwifi-stack-dev: 66d332872336b2c932decebe54a2b37b5bd5a78a
2 files changed