diff mbox series

uki.bbclass: remove duplicate d.getVar('DEPLOY_DIR_IMAGE')

Message ID 20250206152249.4066457-1-koen.kooi@oss.qualcomm.com
State Accepted, archived
Commit 6866da9f3a273ed7217e9edfca299fc2e68b2f75
Headers show
Series uki.bbclass: remove duplicate d.getVar('DEPLOY_DIR_IMAGE') | expand

Commit Message

Koen Kooi Feb. 6, 2025, 3:22 p.m. UTC
This class calls d.getVar('DEPLOY_DIR_IMAGE') twice within the same
method, but DEPLOY_DIR_IMAGE variable won't change during the run of
this class, so only retrieve it once.

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
---
 meta/classes-recipe/uki.bbclass | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass
index 92f690526d..c71cf41182 100644
--- a/meta/classes-recipe/uki.bbclass
+++ b/meta/classes-recipe/uki.bbclass
@@ -130,8 +130,6 @@  python do_uki() {
     initramfs_image = "%s" % (d.getVar('INITRD_ARCHIVE'))
     ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image, initramfs_image))
 
-    deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE')
-
     # kernel
     kernel_filename = d.getVar('UKI_KERNEL_FILENAME') or None
     if kernel_filename: