emunet: Fix init error checking.

Otherwise emunet doesn't expose any cards.
This commit is contained in:
Vladimir Serbinenko 2015-03-20 12:59:00 +01:00
parent 237510486a
commit fe6695b7d6

View file

@ -98,7 +98,7 @@ static int registered = 0;
GRUB_MOD_INIT(emunet)
{
if (grub_emunet_create (&emucard.mtu))
if (!grub_emunet_create (&emucard.mtu))
{
grub_net_card_register (&emucard);
registered = 1;