From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Y1fTa-00021v-4G for mharc-grub-devel@gnu.org; Thu, 18 Dec 2014 13:07:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1fTS-00021R-Ph for grub-devel@gnu.org; Thu, 18 Dec 2014 13:07:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1fTM-0004vg-T1 for grub-devel@gnu.org; Thu, 18 Dec 2014 13:06:54 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:46952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1fTM-0004vc-Ns for grub-devel@gnu.org; Thu, 18 Dec 2014 13:06:48 -0500 Received: by mail-pd0-f180.google.com with SMTP id w10so1864713pde.39 for ; Thu, 18 Dec 2014 10:06:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:reply-to:organization :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=Y+wmBl3Y11fFes1iq87pWe426v4DwXAoCxkjL8Pq2oU=; b=XHb0iy5OaCgce2LDQr0JqXFlk5mT0ZMzaPdoqrkdsY3Foy2tgoSBRwjKneiPc/yeg+ iwF4RCkUDF0iVnlqPvze3J8KP/HM/ekHjggHig2n+FRP/JPfUSosEGOvF4yrtxyEWjnj SGLJzCGs9TjQQ8KMhTXFuPwa9NXg8e7k4Ilr3XiIgERgUNbyU3wlDxwnqJlXOrUlMUzc 0OtylXWmQLjIptXYPpZ2gOe9xsz7rBaCV3N/zAvie3fAfo+rsvbaQf/B68AGFPf1w6kq DTIjFqLrqgSWOiBXpxvjQNjXLFTBj6gk6sXg8lLfivaanLARo9xuOaNSqofMzPKR1JZT IHPA== X-Gm-Message-State: ALoCoQkKW6GltA8h6FXQu8wyF2zQrkTzRcVcsL7VE9j3SNwhUv97bDsCRWm42vjH7lrsqB9yBLIL X-Received: by 10.70.35.207 with SMTP id k15mr5471947pdj.166.1418926008070; Thu, 18 Dec 2014 10:06:48 -0800 (PST) Received: from [192.168.1.11] ([59.58.226.187]) by mx.google.com with ESMTPSA id f1sm7314488pds.93.2014.12.18.10.06.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 10:06:47 -0800 (PST) Message-ID: <549317B4.6080606@linaro.org> Date: Fri, 19 Dec 2014 02:06:44 +0800 From: Fu Wei Organization: Linaro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: grub-devel@gnu.org, Leif Lindholm , Ian Campbell Subject: [PATCH 3/5] arm64: Remove "loaded" checking in the grub_cmd_devicetree of linux.c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.180 Cc: Roy Franz , Jon Masters , linaro-uefi X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 18:07:00 -0000 Reason: (1)we don't need the check, actually (2)it is a prerequisite for multiboot support Signed-off-by: Fu Wei Reviewed-by: Leif Lindholm --- grub-core/loader/arm64/linux.c | 7 ------- 1 file changed, 7 deletions(-) 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")); -- 1.8.3.1