dmaengine: dmatest: move size checks earlier in function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 1 Nov 2018 16:07:16 +0000 (18:07 +0200)
committerVinod Koul <vkoul@kernel.org>
Sat, 24 Nov 2018 13:51:16 +0000 (19:21 +0530)
commit787d3083caf899b8c3abf5a0c7a04e79d77f2c32
tree2c50911e4ecac79889888e73d02d83577a1158d0
parentfbffb6b4d44f1263390130cb8b35cabc030af3f7
dmaengine: dmatest: move size checks earlier in function

There's no need to allocate all that memory if these sizes are invalid
anyway.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c