From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D41EC4332F for ; Tue, 5 Apr 2022 22:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442436AbiDEWLA (ORCPT ); Tue, 5 Apr 2022 18:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457625AbiDEQTm (ORCPT ); Tue, 5 Apr 2022 12:19:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2FD4193D3 for ; Tue, 5 Apr 2022 09:17:43 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A07211F37D; Tue, 5 Apr 2022 16:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649175462; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i5jWb08T0RxS89hDAMTR9oLVSxo0c9WfDhnxBD/u/5s=; b=0O8C9QNrGERCkFNQON7oAKUQUHnC0Y8NVVLvN9SzKVjpS+Jvt0sJLuDKWlYnZjnAewJqER MnVdri7fjg6cDddHVFAFH9Gfpx6gSDdRmYGBHoieIj1OhsY2ct11Z2dMrFJYqdUIoKJwOz X9DwCDlZDww8R0/uhNeMaZo4rC5WFr8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649175462; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i5jWb08T0RxS89hDAMTR9oLVSxo0c9WfDhnxBD/u/5s=; b=am4tIWb8GphVIN0zBVgh8YNpMkPO8GF9t/KZkjCpsJ/utR+1XTDM0ARoDyimAh1qCXD12q i7e1Radr9iPx/fAg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 89B85A3B96; Tue, 5 Apr 2022 16:17:42 +0000 (UTC) Date: Tue, 05 Apr 2022 18:17:42 +0200 Message-ID: From: Takashi Iwai To: Robin Murphy Cc: perex@perex.cz, tiwai@suse.com, iommu@lists.linux-foundation.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ALSA: emu10k1: Stop using iommu_present() In-Reply-To: <9b506b4a4fe8a7f40aa8bad1aafc82426cf3dd92.1649165210.git.robin.murphy@arm.com> References: <9b506b4a4fe8a7f40aa8bad1aafc82426cf3dd92.1649165210.git.robin.murphy@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 05 Apr 2022 15:27:54 +0200, Robin Murphy wrote: > > iommu_get_domain_for_dev() is already perfectly happy to return NULL > if the given device has no IOMMU. Drop the unnecessary check in favour > of just handling that condition appropriately. > > Signed-off-by: Robin Murphy > --- > > v2: Get "!domain" condition right Applied now. Thanks. Takashi