[PATCH] efi: simply the fdt_find_uefi_params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove the check of node as it should never be
less then zero dut to its tupe is unsigned long.

Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
---

 drivers/firmware/efi/efi.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 5a2631a..96261ce 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -656,11 +656,8 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname,
 			continue;
 		}
 
-		if (subnode) {
+		if (subnode)
 			node = of_get_flat_dt_subnode_by_name(node, subnode);
-			if (node < 0)
-				return 0;
-		}
 
 		return __find_uefi_params(node, info, dt_params[i].params);
 	}
-- 
2.3.7


--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux