diff mbox

[3/5] arm64: Remove "loaded" checking in the grub_cmd_devicetree of linux.c

Message ID 549317B4.6080606@linaro.org
State New
Headers show

Commit Message

Fu Wei Fu Dec. 18, 2014, 6:06 p.m. UTC
Reason: (1)we don't need the check, actually
               (2)it is a prerequisite for multiboot support

Signed-off-by: Fu Wei <fu.wei@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
---
 grub-core/loader/arm64/linux.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox

Patch

diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
index 987f5b9..e9e9a29 100644
--- a/grub-core/loader/arm64/linux.c
+++ b/grub-core/loader/arm64/linux.c
@@ -185,13 +185,6 @@  grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)),
   void *blob = NULL;
   int size;
 
-  if (!loaded)
-    {
-      grub_error (GRUB_ERR_BAD_ARGUMENT,
-		  N_("you need to load the kernel first"));
-      return GRUB_ERR_BAD_OS;
-    }
-
   if (argc != 1)
     return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));