mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-28 11:43:09 +03:00
beautify
git-svn-id: svn://kolibrios.org@4138 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2775767bec
commit
a6ab7fa13e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user