iommu: Simplify and fix ida handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 29 Jun 2016 19:13:59 +0000 (21:13 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 13 Jul 2016 10:28:55 +0000 (12:28 +0200)
commitfeccf398db631f3b98c4c6572381517d90b5fd87
treed56aac4685cdd6920251eca7fdcf39a18d8561f3
parente38d1f1312e4e88d1dab1fdf591824e1f3b105a9
iommu: Simplify and fix ida handling

Ida handling can be much simplified by using the ida_simple_.. functions.

This change also fixes the bug that previously checking for errors
returned by ida_get_new() was incomplete.
ida_get_new() can return errors other than EAGAIN, e.g. ENOSPC.
This case wasn't handled.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
This page took 0.025037 seconds and 5 git commands to generate.