From 6dd5e22f32fe95e162e3c9fd0fbec3e9b42284a2 Mon Sep 17 00:00:00 2001 From: Payal Kshirsagar Date: Wed, 25 Mar 2020 15:18:14 +0530 Subject: [PATCH] src: platform: intel: cavs: lib: remove unnecessary parentheses Remove unnecessary parentheses around the right hand side of an assignment. Signed-off-by: Payal Kshirsagar --- src/platform/intel/cavs/lib/pm_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/intel/cavs/lib/pm_memory.c b/src/platform/intel/cavs/lib/pm_memory.c index 8045976ed..694739134 100644 --- a/src/platform/intel/cavs/lib/pm_memory.c +++ b/src/platform/intel/cavs/lib/pm_memory.c @@ -193,8 +193,8 @@ void set_power_gate_for_memory_address_range(void *ptr, /* Ending bank id has to be lowered by one because it is * calculated from memory end ptr */ - ending_bank_id = (((uintptr_t)end_ptr - HP_SRAM_BASE) - / SRAM_BANK_SIZE - 1); + ending_bank_id = ((uintptr_t)end_ptr - HP_SRAM_BASE) + / SRAM_BANK_SIZE - 1; set_banks_gating(start_bank_id, ending_bank_id, enabled); }