mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "ipq806x: fixed the fdt_path_offset return value check"
This commit is contained in:
commit
7bb2910d6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue