summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2012-09-05 07:50:41 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2012-10-02 08:57:45 +0200
commitbdd43cb39f1b1e897c5d7992d05d0b9f0dd786d1 (patch)
treeeec00a15f43da4bb55510a6d1542c038a877637e /arch/arm
parenta0d271cbfed1dd50278c6b06bead3d00ba0a88f9 (diff)
downloadlinux-bdd43cb39f1b1e897c5d7992d05d0b9f0dd786d1.tar.bz2
drivers: dma-contiguous: refactor dma_alloc_from_contiguous()
The dma_alloc_from_contiguous() function returns either a valid pointer to a page structure or NULL, the error code set when pageno >= cma->count is not used at all and can be safely removed. This commit also changes the function to avoid goto and have only one exit path and one place where mutex is unlocked. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> [fixed compilation break caused by missing semicolon] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions