]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/dma-buf/dma-buf.c
dma-buf: Remove unneeded sanity checks
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 26 Jan 2012 11:27:23 +0000 (12:27 +0100)
committerSumit Semwal <sumit.semwal@ti.com>
Mon, 19 Mar 2012 10:12:15 +0000 (15:42 +0530)
commitd1aa06a1eaf5f751c9913703031d611599d8d3d7
treedce298d9d1f7bdb95e8c259c3e304f9322c5d31a
parent5375764f9408b8ef1fb8d6cd1ed0efd97dce4824
dma-buf: Remove unneeded sanity checks

ops, ops->map_dma_buf and ops->unmap_dma_buf are guaranteed to be
non-NULL by a check in dma_buf_export(). Remove NULL checks on those
variables in the other API functions.

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