diff --git a/[refs] b/[refs] index e1188f16c5cc..821211d37087 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1a5d76dbe825fa6deba3d8979bbd334ea17b6dcc +refs/heads/master: f5e097f0465e874ac76e8b6ae355b6faa83973a1 diff --git a/trunk/drivers/base/dma-buf.c b/trunk/drivers/base/dma-buf.c index a3f79c495a41..ff5b745c4705 100644 --- a/trunk/drivers/base/dma-buf.c +++ b/trunk/drivers/base/dma-buf.c @@ -134,15 +134,14 @@ EXPORT_SYMBOL_GPL(dma_buf_export); */ int dma_buf_fd(struct dma_buf *dmabuf, int flags) { - int error, fd; + int fd; if (!dmabuf || !dmabuf->file) return -EINVAL; - error = get_unused_fd_flags(flags); - if (error < 0) - return error; - fd = error; + fd = get_unused_fd_flags(flags); + if (fd < 0) + return fd; fd_install(fd, dmabuf->file);