of: Move setting of pointer to beside test for non-null
authorFrank Rowand <frank.rowand@am.sony.com>
Sat, 29 Oct 2016 06:26:31 +0000 (23:26 -0700)
committerRob Herring <robh@kernel.org>
Tue, 15 Nov 2016 15:17:17 +0000 (09:17 -0600)
commit4458db4c9b7363a60d9ad07275fb2eea4ecf3b52
tree0b15a593cf04da5e9580099e1780a032f75baed5
parentd9181b20a83bd8de207e0cb54be499d9880b00e3
of: Move setting of pointer to beside test for non-null

Value of pointer was calculated in an earlier block than
where it was used.  Move it down into the block where it
is used, immediately before where is is checked to be valid.

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/resolver.c