lkml.org 
[lkml]   [2019]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] iommu/vt-d: Refactor find_domain() helper
On Thu, Aug 01, 2019 at 02:01:54PM +0800, Lu Baolu wrote:
> + /* No lock here, assumes no domain exit in normal case */

s/exit/exists/ ?

> + info = dev->archdata.iommu;
> + if (likely(info))
> + return info->domain;

But then again the likely would be odd.

\
 
 \ /
  Last update: 2019-08-01 08:11    [W:0.114 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site