From a6ab7fa13e64b3e3845494f41fbe8678e0cf3518 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Wed, 30 Oct 2013 10:57:10 +0000 Subject: [PATCH] beautify git-svn-id: svn://kolibrios.org@4138 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/bus/usb/protocol.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/trunk/bus/usb/protocol.inc b/kernel/trunk/bus/usb/protocol.inc index 2e1f008733..dc3a68a3e0 100644 --- a/kernel/trunk/bus/usb/protocol.inc +++ b/kernel/trunk/bus/usb/protocol.inc @@ -202,8 +202,7 @@ proc usb_new_device ; For now, we need sizeof.usb_device_data and extra 8 bytes for GET_DESCRIPTOR ; input and output, see usb_after_set_address. Later we will reallocate it ; to actual size needed for descriptors. - push sizeof.usb_device_data + 8 - pop eax + movi eax, sizeof.usb_device_data + 8 push ecx call malloc pop ecx @@ -498,10 +497,7 @@ proc usb_after_set_endpoint_size pop edi esi call usb_reinit_pipe_list ; 1d. Free the old memory. -; Note that free destroys ebx. - push ebx call free - pop ebx pop eax ; 2. Issue control transfer GET_DESCRIPTOR(DEVICE) for full descriptor. ; restore length saved in step 1a