From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40zxfY2vFYzF0Rs for ; Tue, 5 Jun 2018 00:10:29 +1000 (AEST) In-Reply-To: <20180228182145.AD1C76F114@po15720vm.idsi0.si.c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/dma: remove unnecessary BUG() Message-Id: <40zxfY1vv9z9s0w@ozlabs.org> Date: Tue, 5 Jun 2018 00:10:29 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2018-02-28 at 18:21:45 UTC, Christophe Leroy wrote: > Direction is already checked in all calling functions in > include/linux/dma-mapping.h and also in called function __dma_sync() > > So really no need to check it once more here. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/9887334b804892f10262fa7f805998 cheers