staging: ion: Fix error handling in ion_buffer_create
staging: ion: Fix error handling in ion_buffer_create

This patch fixes error handling case when buffer->pages allocation
fails. Also, it removes unreachable code of checking ret variable
although it is not updated.

Signed-off-by: Rohit kumar <66760de94dc90070bb4c0ad45ce4ef13d3bcdc8f@samsung.com>
Reviewed-by: Laura Abbott <b8f3952ea9a7ddc193d05c7cc03f120086c69f1e@redhat.com>
Suggested-by: Pintu Kumar <50bb2d74b059ecf8edae2cae63872cdcf4a1d338@samsung.com>
Reviewed-by: Pintu Kumar <50bb2d74b059ecf8edae2cae63872cdcf4a1d338@samsung.com>
Reviewed-by: Gioh Kim <07df7bab03df28a2714e7e0ded06841891899bd6@lge.com>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs