[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200219092934.GJ23114@suse.de>
Date: Wed, 19 Feb 2020 10:29:34 +0100
From: Joerg Roedel <jroedel@...e.de>
To: Christoph Hellwig <hch@...radead.org>
Cc: Joerg Roedel <joro@...tes.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
David Woodhouse <dwmw2@...radead.org>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/5] iommu/vt-d: Add attach_deferred() helper
On Tue, Feb 18, 2020 at 09:14:54AM -0800, Christoph Hellwig wrote:
> > +static bool attach_deferred(struct device *dev)
> > +{
> > + return dev->archdata.iommu == DEFER_DEVICE_DOMAIN_INFO;
> > +}
>
> This is not a very useful helper.
Depends on what one considers useful. I think such helpers make the code
better readable, which is pretty useful to me.
Regards,
Joerg
Powered by blists - more mailing lists