[Spice-devel] [PATCH spice-server] cursor-channel: Remove obsolete size check

Frediano Ziglio fziglio at redhat.com
Mon May 22 10:41:02 UTC 2017


In the past CursorItem structure was stored in
RedCursorCmd::device_data field so the check was there to check if the
structure fit into that field.
Since 2ba69f9f8819daaa3d166c4c1c7e03b121b88a95
("libspice: add surface 0 support") the structure is no more stored in
the field so there's no reason for this check causing only confusion.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/cursor-channel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 6aea64a..a876113 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -34,8 +34,6 @@ typedef struct CursorItem {
     RedCursorCmd *red_cursor;
 } CursorItem;
 
-G_STATIC_ASSERT(sizeof(CursorItem) <= QXL_CURSUR_DEVICE_DATA_SIZE);
-
 struct CursorChannel
 {
     CommonGraphicsChannel parent;
-- 
2.9.4



More information about the Spice-devel mailing list