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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]