of: Don't try to search when phandle == 0
authorGrant Likely <grant.likely@linaro.org>
Thu, 2 Oct 2014 12:08:02 +0000 (13:08 +0100)
committerGrant Likely <grant.likely@linaro.org>
Sat, 4 Oct 2014 20:20:18 +0000 (21:20 +0100)
commitfc59b4479c172e413df615cea1635247265e07a0
treea17490b63373d95e7a72de2ffdbd4dd025ebd2e4
parentf2051d6a88cd03f74221da887f56d778a1b2f1f1
of: Don't try to search when phandle == 0

A value of '0' isn't a valid phandle, so searching for a node with that
phandle is pointless. It will result in nothing but false positives.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c