mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
AMD/IOMMU: address violations of MISRA C:2012 Rule 11.8
Drop an unnecessary cast discarding a const qualifier, to comply with Rule 11.8. The type of the formal parameter ivhd_block is const qualified. 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:
1 parent
fe26cb2dd2
commit
fc63c0ebef
1 file changed
+1
-1
@@ -1232,7 +1232,7 @@ static int __init get_last_bdf_ivhd(
|
||||
while ( ivhd_block->header.length >=
|
||||
(block_length + sizeof(struct acpi_ivrs_de_header)) )
|
||||
{
|
||||
ivhd_device = (const void *)((u8 *)ivhd_block + block_length);
|
||||
ivhd_device = (const void *)ivhd_block + block_length;
|
||||
|
||||
switch ( ivhd_device->header.type )
|
||||
{
|
||||
|
||||