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 54F2AEE801F for ; Mon, 11 Sep 2023 07:06:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjIKHGK (ORCPT ); Mon, 11 Sep 2023 03:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjIKHGI (ORCPT ); Mon, 11 Sep 2023 03:06:08 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 849F79C; Mon, 11 Sep 2023 00:06:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 47B9B1F893; Mon, 11 Sep 2023 07:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694415963; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X1pFX4FnSNwzqfs2RYvHIlQsUS/7AymatMkM1gp/F9U=; b=m0/zqCCA3ZdtUaUM8blACpLFJjQ3E7EiZcOQfpNJm9gehqpqIIeMzmVuId3gvklvhtUmmW njNWmthpV1d1fr4ks19S7eC3a0/pgnVnuYGn/Jq6ioTdu6C5caLwYQ+9+JhDOgjYM7rkk/ ObIdmu8TLT/wS0ALV+cVjkWW+xXy3Ck= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694415963; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X1pFX4FnSNwzqfs2RYvHIlQsUS/7AymatMkM1gp/F9U=; b=7ACjrmO031R91WWQ5X/gF6Eh3S6qpgg+Oy9GQMme0fyL53ioytzLmDI8QZdROLKhjhAKig eIu2oolefv294JDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AE65713780; Mon, 11 Sep 2023 07:06:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eMa2KFq8/mQKVwAAMHmgww (envelope-from ); Mon, 11 Sep 2023 07:06:02 +0000 Message-ID: <7d4bdbdc-1558-4fbb-a177-484ce4b1fb3b@suse.de> Date: Mon, 11 Sep 2023 09:06:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 19/19] ata: libata: Cleanup inline DMA helper functions Content-Language: en-US To: Damien Le Moal , linux-ide@vger.kernel.org Cc: linux-scsi@vger.kernel.org, "Martin K . Petersen" , John Garry , Rodrigo Vivi , Paul Ausbeck , Kai-Heng Feng , Joe Breuer References: <20230911040217.253905-1-dlemoal@kernel.org> <20230911040217.253905-20-dlemoal@kernel.org> From: Hannes Reinecke In-Reply-To: <20230911040217.253905-20-dlemoal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 9/11/23 06:02, Damien Le Moal wrote: > Simplify the inline DMA helper functions ata_using_mwdma(), > ata_using_udma() and ata_dma_enabled() to directly return as a boolean > the result of their test condition. > > Signed-off-by: Damien Le Moal > --- > include/linux/libata.h | 18 ++++++++---------- > 1 file changed, 8 insertions(+), 10 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman