x86/platform_hypercall: address violations of MISRA C:2012 Rule 11.8

Add const qualifier in cast that unnecessarily removes it
to comply with Rule 11.8.
The variable info is declared with a const qualified type.
No functional change.

Signed-off-by: Maria Celeste Cesario  <maria.celeste.cesario@bugseng.com>
Signed-off-by: Simone Ballarin  <simone.ballarin@bugseng.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Maria Celeste Cesario authored and Jan Beulich committed 2023-11-27 15:16:43 +01:00
1 parent 82182ad7b4
commit 09c2fe438d
1 file changed
+1 -1
+1 -1
View File
@@ -364,7 +364,7 @@ ret_t do_platform_op(
if ( length > info->edd_device_params.length )
length = info->edd_device_params.length;
if ( copy_to_compat(op->u.firmware_info.u.disk_info.edd_params,
(u8 *)&info->edd_device_params,
(const uint8_t *)&info->edd_device_params,
length) )
break;
if ( copy_to_compat(op->u.firmware_info.u.disk_info.edd_params,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.