diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-11 04:47:16 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-12 10:20:22 -0400 |
commit | 6566435af95dc3cc90bdfe806b278137ad13fef3 (patch) | |
tree | 35f0125b150db675e7ae46135fe31c434aa244cc | |
parent | f4cceb2affcd1285d4ce498089e8a79f4cd2fa66 (diff) |
qxl: silence uninitialized variable warning
GCC doesn't complain about this but my static checker does. We're
passing "drawable" before initializing it. It's not actually used so
it's harmless and I just removed it.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160711084716.GB31411@mwanda
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_draw.c b/drivers/gpu/drm/qxl/qxl_draw.c index 6e6c76080d6a..ffe885395145 100644 --- a/drivers/gpu/drm/qxl/qxl_draw.c +++ b/drivers/gpu/drm/qxl/qxl_draw.c | |||
@@ -37,7 +37,6 @@ static int alloc_clips(struct qxl_device *qdev, | |||
37 | * the qxl_clip_rects. This is *not* the same as the memory allocated | 37 | * the qxl_clip_rects. This is *not* the same as the memory allocated |
38 | * on the device, it is offset to qxl_clip_rects.chunk.data */ | 38 | * on the device, it is offset to qxl_clip_rects.chunk.data */ |
39 | static struct qxl_rect *drawable_set_clipping(struct qxl_device *qdev, | 39 | static struct qxl_rect *drawable_set_clipping(struct qxl_device *qdev, |
40 | struct qxl_drawable *drawable, | ||
41 | unsigned num_clips, | 40 | unsigned num_clips, |
42 | struct qxl_bo *clips_bo) | 41 | struct qxl_bo *clips_bo) |
43 | { | 42 | { |
@@ -351,7 +350,7 @@ void qxl_draw_dirty_fb(struct qxl_device *qdev, | |||
351 | if (ret) | 350 | if (ret) |
352 | goto out_release_backoff; | 351 | goto out_release_backoff; |
353 | 352 | ||
354 | rects = drawable_set_clipping(qdev, drawable, num_clips, clips_bo); | 353 | rects = drawable_set_clipping(qdev, num_clips, clips_bo); |
355 | if (!rects) | 354 | if (!rects) |
356 | goto out_release_backoff; | 355 | goto out_release_backoff; |
357 | 356 | ||