USB-PD: Fix scope of variable ma in pd_find_pdo_index
This variable, ma, in pd_find_pdo_index is used only in an internal
section but its scope is leaking to the entire function. This patch
fixes the scope for better readability.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=none
BRANCH=none
TEST=buildall
Change-Id: Ice903fc830e9d95cc4f2ecbdb6fe8e606f56cf2d
Reviewed-on: https://chromium-review.googlesource.com/1459825
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
1 file changed