diff options
author | Luke <luke.wilde@live.co.uk> | 2021-08-12 04:48:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 21:22:44 +0200 |
commit | 1ca5b6caa9f66d01ffb3af953e06f5d9fe9ba732 (patch) | |
tree | 90d7d5a43f8ee12e6b50e879250b657f8ae96191 /Kernel/Bus | |
parent | 7dd1786b13853f7107b47dd2dc620d4a1eda375d (diff) | |
download | serenity-1ca5b6caa9f66d01ffb3af953e06f5d9fe9ba732.zip |
Kernel/USB: Pass in device address as last argument to Pipe constructor
The order of poll_interval and device_address was flipped.
Diffstat (limited to 'Kernel/Bus')
-rw-r--r-- | Kernel/Bus/USB/USBPipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/USB/USBPipe.cpp b/Kernel/Bus/USB/USBPipe.cpp index 92c7a161c3..a4bd6d3720 100644 --- a/Kernel/Bus/USB/USBPipe.cpp +++ b/Kernel/Bus/USB/USBPipe.cpp @@ -13,7 +13,7 @@ namespace Kernel::USB { KResultOr<NonnullOwnPtr<Pipe>> Pipe::try_create_pipe(USBController const& controller, Type type, Direction direction, u8 endpoint_address, u16 max_packet_size, i8 device_address, u8 poll_interval) { - auto pipe = adopt_own_if_nonnull(new (nothrow) Pipe(controller, type, direction, endpoint_address, max_packet_size, device_address, poll_interval)); + auto pipe = adopt_own_if_nonnull(new (nothrow) Pipe(controller, type, direction, endpoint_address, max_packet_size, poll_interval, device_address)); if (!pipe) return ENOMEM; |