Skip to contentSkip to conversation

media: staging: ipu7: Drop total_queue_size variable

PATCH New Sakari Ailus 1 participant 1 message Jun 25, 2025

Subsystems (3)
lore
Share & tools
lore

Sakari Ailus

author maintainer
#0 lore raw

PATCH 1/1 media: staging: ipu7: Drop total_queue_size variable

Variable total_queue_size in ipu7_boot_init_boot_config() is redundant. Remove it.

---
Hi folks,

I'll squash these to the ipu7 set.

 drivers/staging/media/ipu7/ipu7-boot.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/ipu7/ipu7-boot.c +1 -2
index 666cede396f9..d7901ff78b38 100644
@@ -209,7 +209,7 @@ int ipu7_boot_init_boot_config(struct ipu7_bus_device *adev,
 			       int num_queues, u32 uc_freq,
 			       dma_addr_t subsys_config, u8 major)
 {
-	u32 total_queue_size = 0, total_queue_size_aligned = 0;
+	u32 total_queue_size_aligned = 0;
 	struct ipu7_syscom_context *syscom = adev->syscom;
 	struct ia_gofo_boot_config *boot_config;
 	struct syscom_queue_params_config *cfgs;
@@ -252,7 +252,6 @@ int ipu7_boot_init_boot_config(struct ipu7_bus_device *adev,
 		u32 queue_size = qconfigs[i].max_capacity *
 			qconfigs[i].token_size_in_bytes;
 
-		total_queue_size += queue_size;
 		queue_size = ALIGN(queue_size, 64U);
 		total_queue_size_aligned += queue_size;
 		qconfigs[i].queue_size = queue_size;
Signature · 1 line
2.39.5