drivers: dma-coherent: simplify dma_init_coherent_memory return value
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 4 Jan 2016 21:36:40 +0000 (22:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2016 01:39:33 +0000 (17:39 -0800)
commit9e5b3d6f7f946a3fb4d83ac2ab6d2bfefcdafffb
tree61274c147cc40a10d6afe15a52332cf01d81c196
parent92aed5d6ba90c2031c8d321a02e7af3d4cb05b8d
drivers: dma-coherent: simplify dma_init_coherent_memory return value

Since only dma_declare_coherent_memory cares about
dma_init_coherent_memory returning part of flags as it return value,
move the condition to the former and simplify the latter.  This in
turn makes rmem_dma_device_init less confusing.

Reported-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dma-coherent.c