diff options
author | 2024-06-13 21:25:45 +0000 | |
---|---|---|
committer | 2024-06-13 21:56:23 +0000 | |
commit | 7583e835f79e74119ef9c96a4c7c4815b4547b0c (patch) | |
tree | 7a4266c6ae07010102d6e96f79a540fa31e9e485 /sh | |
parent | 71825167e0b4a9f078daf5872ea148b43b86b298 (diff) |
Cleanup ImageInterface.SetImageVariation
This change modifies the interface method of
ImageInterface.SetImageVariation so that the image variation is set
directly at the caller image variation module, instead of passing the
pointer to set the image variation.
Test: m nothing
Change-Id: I8eadb5149365530243e19a8cd37eb49d335fbeef
Diffstat (limited to 'sh')
-rw-r--r-- | sh/sh_binary.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go index 3f82560c0..48a442de4 100644 --- a/sh/sh_binary.go +++ b/sh/sh_binary.go @@ -243,10 +243,8 @@ func (s *ShBinary) ExtraImageVariations(ctx android.BaseModuleContext) []string return extraVariations } -func (s *ShBinary) SetImageVariation(ctx android.BaseModuleContext, variation string, module android.Module) { - if m, ok := module.(*ShBinary); ok { - m.properties.ImageVariation = variation - } +func (s *ShBinary) SetImageVariation(ctx android.BaseModuleContext, variation string) { + s.properties.ImageVariation = variation } // Overrides ModuleBase.InstallInRamdisk() so that the install rule respects |