Merge "ipq806x: fixed the fdt_path_offset return value check"

This commit is contained in:
Linux Build Service Account 2018-03-15 09:00:22 -07:00 committed by Gerrit - the friendly Code Review server
commit 7bb2910d6a

View file

@ -883,7 +883,7 @@ int ipq_gmac_init(ipq_gmac_board_cfg_t *gmac_cfg)
ar8033_gpio_node = fdt_path_offset(gd->fdt_blob, "/ar8033_gpio");
if (ar8033_gpio_node != 0) {
if (ar8033_gpio_node >= 0) {
bb_nodes[i] = malloc(sizeof(struct bitbang_nodes));
memset(bb_nodes[i], 0, sizeof(struct bitbang_nodes));