From 01869368c08278d19a0b7ec744013bc88afcf09a Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 4 Jun 2025 21:56:08 +0200 Subject: arm: imx: remove unnecessary volatile qualifiers from "save gd" variables Now that the global gd pointer is no longer volatile-qualified, there's no reason for the temporary variables used for saving/restoring it to have that qualifier. Signed-off-by: Rasmus Villemoes Tested-by: Anshul Dalal --- arch/arm/mach-imx/romapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/arm/mach-imx/romapi.c') diff --git a/arch/arm/mach-imx/romapi.c b/arch/arm/mach-imx/romapi.c index ff0522c2d11..c6fe4d8858e 100644 --- a/arch/arm/mach-imx/romapi.c +++ b/arch/arm/mach-imx/romapi.c @@ -9,7 +9,7 @@ DECLARE_GLOBAL_DATA_PTR; u32 rom_api_download_image(u8 *dest, u32 offset, u32 size) { u32 xor = (uintptr_t)dest ^ offset ^ size; - volatile gd_t *sgd = gd; + gd_t *sgd = gd; u32 ret; ret = g_rom_api->download_image(dest, offset, size, xor); @@ -21,7 +21,7 @@ u32 rom_api_download_image(u8 *dest, u32 offset, u32 size) u32 rom_api_query_boot_infor(u32 info_type, u32 *info) { u32 xor = info_type ^ (uintptr_t)info; - volatile gd_t *sgd = gd; + gd_t *sgd = gd; u32 ret; ret = g_rom_api->query_boot_infor(info_type, info, xor); @@ -34,7 +34,7 @@ extern struct rom_api *g_rom_api; enum boot_device get_boot_device(void) { - volatile gd_t *pgd = gd; + gd_t *pgd = gd; int ret; u32 boot; u16 boot_type; -- cgit v1.2.3