diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-14 17:39:11 +0300 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-09-15 17:42:01 +0300 |
commit | 96c594ba4f98ac957f4e597c77410a8132013a2d (patch) | |
tree | 63b8014808e0e85d36d85357ae16b1a480754149 /drivers/gpu/drm/qxl/qxl_draw.c | |
parent | 03d6356d45fa1efefcde517462aca17db073f9c5 (diff) | |
download | linux-96c594ba4f98ac957f4e597c77410a8132013a2d.tar.xz |
drm/qxl: squash lines for simple wrapper functions
Remove unneeded variables and assignments.
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1473863952-7658-5-git-send-email-yamada.masahiro@socionext.com
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_draw.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_draw.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_draw.c b/drivers/gpu/drm/qxl/qxl_draw.c index ffe885395145..9b728edf1b49 100644 --- a/drivers/gpu/drm/qxl/qxl_draw.c +++ b/drivers/gpu/drm/qxl/qxl_draw.c @@ -57,11 +57,8 @@ static struct qxl_rect *drawable_set_clipping(struct qxl_device *qdev, static int alloc_drawable(struct qxl_device *qdev, struct qxl_release **release) { - int ret; - ret = qxl_alloc_release_reserved(qdev, sizeof(struct qxl_drawable), - QXL_RELEASE_DRAWABLE, release, - NULL); - return ret; + return qxl_alloc_release_reserved(qdev, sizeof(struct qxl_drawable), + QXL_RELEASE_DRAWABLE, release, NULL); } static void |