mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/ucode: Don't cast away const-ness in cmp_patch_id()
Fixes a volation of MISRA rule 11.8. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
eb518632cd
commit
7becd32d84
1 file changed
+1
-1
@@ -106,7 +106,7 @@ static bool __ro_after_init entrysign_mitigiated_in_firmware;
|
||||
static int cf_check cmp_patch_id(const void *key, const void *elem)
|
||||
{
|
||||
const struct patch_digest *pd = elem;
|
||||
uint32_t patch_id = *(uint32_t *)key;
|
||||
uint32_t patch_id = *(const uint32_t *)key;
|
||||
|
||||
if ( patch_id == pd->patch_id )
|
||||
return 0;
|
||||
|
||||