Alex Bennée d9d2663c33 ui/vnc-enc-tight: remove switch and have single return
When enabling the sanitizer build it will complain about control
reaching a non-void function. Normally the compiler should detect that
there is only one possible exit given a static VNC_SERVER_FB_BYTES.

As we always expect a static VNC_SERVER_FB_BYTES I've added a compile
time assert and just called the sub-function directly.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-09-28 12:55:09 +02:00
..
2016-09-13 08:01:39 +02:00
2016-02-04 17:01:04 +00:00
2016-07-11 10:40:29 +01:00
2016-06-10 11:13:15 +02:00
2016-02-04 17:01:04 +00:00
2016-03-08 12:20:11 +01:00
2016-06-03 08:23:26 +02:00
2016-02-04 17:01:04 +00:00
2016-06-03 08:23:26 +02:00
2016-09-23 11:42:52 +08:00
2016-03-01 08:19:07 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-23 12:43:05 +00:00
2016-09-13 08:01:39 +02:00
2016-02-04 17:01:04 +00:00