[Spice-devel] [PATCH v6 01/26] server: Remove an unnecessary cast in encode_frame()
Francois Gouget
fgouget at codeweavers.com
Wed Oct 14 08:30:35 PDT 2015
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
server/red_worker.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/server/red_worker.c b/server/red_worker.c
index babb597..616be72 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8512,8 +8512,7 @@ static int encode_frame(DisplayChannelClient *dcc, const SpiceRect *src,
const unsigned int stream_width = src->right - src->left;
for (i = 0; i < stream_height; i++) {
- uint8_t *src_line =
- (uint8_t *)red_get_image_line(chunks, &offset, &chunk, image_stride);
+ uint8_t *src_line = red_get_image_line(chunks, &offset, &chunk, image_stride);
if (!src_line) {
return FALSE;
--
2.6.1
More information about the Spice-devel
mailing list