lkml.org 
[lkml]   [2008]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 12/34] AMD IOMMU: add detect code for AMD IOMMU hardware
On Thu, 26 Jun 2008 21:27:48 +0200 Joerg Roedel <joerg.roedel@amd.com> wrote:

> This patch adds the detection of AMD IOMMU hardware provided on information
> from ACPI provided by the BIOS.
>
> ...
>
> +static int __init init_iommu_all(struct acpi_table_header *table)
> +{
> + u8 *p = (u8 *)table, *end = (u8 *)table;
> + struct ivhd_header *h;
> + struct amd_iommu *iommu;
> + int ret;
> +
> + INIT_LIST_HEAD(&amd_iommu_list);

Initialisation of a global list_head should be unnecessary. Just define
the list_head with LIST_HEAD() and do it at compile-time.




\
 
 \ /
  Last update: 2008-07-10 03:59    [W:0.811 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site