2008-01-19 Robert Millan <rmh@aybabtu.com>

Get rid of confusing function (superceeded by
        `grub_ieee1275_get_integer_property')
        * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
        prototype.
        * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
        function.
        * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
        grub_ieee1275_decode_int_4(), by obtaining integer properties directly
        in native endianess from grub_ieee1275_get_integer_property().
This commit is contained in:
robertmh 2008-01-19 22:31:04 +00:00
parent e2da7d26bb
commit 33bf70a759
4 changed files with 18 additions and 22 deletions

View file

@ -26,16 +26,6 @@
/* FIXME is this function needed? */
grub_uint32_t
grub_ieee1275_decode_int_4 (unsigned char *p)
{
grub_uint32_t val = (*p++ << 8);
val = (val + *p++) << 8;
val = (val + *p++) << 8;
return (val + *p);
}
int
grub_ieee1275_finddevice (char *name, grub_ieee1275_phandle_t *phandlep)
{