dma-buf: Return error instead of using a goto statement when possible
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 26 Jan 2012 11:27:24 +0000 (12:27 +0100)
committerSumit Semwal <sumit.semwal@ti.com>
Mon, 19 Mar 2012 10:12:15 +0000 (15:42 +0530)
commita9fbc3b73127efba9276e172daa8d122f0fac1a8
tree09eb3b471a631217de8c533293571c2d7968981d
parentd1aa06a1eaf5f751c9913703031d611599d8d3d7
dma-buf: Return error instead of using a goto statement when possible

Remove an error label in dma_buf_attach() that just returns an error
code.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c