From: Erwan Velu Date: Sun, 6 Feb 2011 22:54:26 +0000 (+0100) Subject: lua: removing duplicated code from vesa.c X-Git-Tag: syslinux-4.04-pre9~1^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9716800d675364ff18112a25f8d6adea2c341e2f;p=profile%2Fivi%2Fsyslinux.git lua: removing duplicated code from vesa.c This code was static and unused. At least, if we need it let's reuse the code from the vesa lib. --- diff --git a/com32/lua/src/vesa.c b/com32/lua/src/vesa.c index f09faf3..7591119 100644 --- a/com32/lua/src/vesa.c +++ b/com32/lua/src/vesa.c @@ -10,28 +10,6 @@ int vesacon_load_background(const char *filename); -static int __constfunc is_power_of_2(unsigned int x) -{ - return x && !(x & (x-1)); -} - -static int vesacon_paged_mode_ok(const struct vesa_mode_info *mi) -{ - int i; - - if (!is_power_of_2(mi->win_size) || - !is_power_of_2(mi->win_grain) || - mi->win_grain > mi->win_size) - return 0; /* Impossible... */ - - for (i = 0; i < 2; i++) { - if ((mi->win_attr[i] & 0x05) == 0x05 && mi->win_seg[i]) - return 1; /* Usable window */ - } - - return 0; /* Nope... */ -} - static int vesa_getmodes(lua_State *L) { com32sys_t rm;