* [PATCH] efi: arm64: memory node handling cleanup
@ 2014-05-23 15:19 Leif Lindholm
0 siblings, 0 replies; only message in thread
From: Leif Lindholm @ 2014-05-23 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Remove unused variable, and convert strncmp() to strcmp(), since the
former is not available in arm zImage.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
---
drivers/firmware/efi/fdt.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/efi/fdt.c b/drivers/firmware/efi/fdt.c
index 5c6a8e8..ab12870 100644
--- a/drivers/firmware/efi/fdt.c
+++ b/drivers/firmware/efi/fdt.c
@@ -63,15 +63,14 @@ static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
*/
prev = 0;
for (;;) {
- const char *type, *name;
- int len;
+ const char *type;
node = fdt_next_node(fdt, prev, NULL);
if (node < 0)
break;
- type = fdt_getprop(fdt, node, "device_type", &len);
- if (type && strncmp(type, "memory", len) == 0) {
+ type = fdt_getprop(fdt, node, "device_type", NULL);
+ if (type && strcmp(type, "memory") == 0) {
fdt_del_node(fdt, node);
continue;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-23 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 15:19 [PATCH] efi: arm64: memory node handling cleanup Leif Lindholm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).