From 9c08bb95553539d1880a5ac81ba5608d4ad874de Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 28 Jan 2023 20:12:17 +0000 Subject: AK: Remove `try_` prefix from FixedArray creation functions --- Kernel/Bus/USB/USBConfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Bus/USB') diff --git a/Kernel/Bus/USB/USBConfiguration.cpp b/Kernel/Bus/USB/USBConfiguration.cpp index bf913f0006..ecf86aaf48 100644 --- a/Kernel/Bus/USB/USBConfiguration.cpp +++ b/Kernel/Bus/USB/USBConfiguration.cpp @@ -15,7 +15,7 @@ namespace Kernel::USB { ErrorOr USBConfiguration::enumerate_interfaces() { - auto descriptor_hierarchy_buffer = TRY(FixedArray::try_create(m_descriptor.total_length)); // Buffer for us to store the entire hierarchy into + auto descriptor_hierarchy_buffer = TRY(FixedArray::create(m_descriptor.total_length)); // Buffer for us to store the entire hierarchy into // The USB spec is a little bit janky here... Interface and Endpoint descriptors aren't fetched // through a `GET_DESCRIPTOR` request to the device. Instead, the _entire_ hierarchy is returned -- cgit v1.2.3