diff options
Diffstat (limited to 'kernel/ethosu_network_info.c')
-rw-r--r-- | kernel/ethosu_network_info.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/kernel/ethosu_network_info.c b/kernel/ethosu_network_info.c index a99ca84..5469b6c 100644 --- a/kernel/ethosu_network_info.c +++ b/kernel/ethosu_network_info.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 ARM Limited. + * Copyright 2022-2023 Arm Limited and/or its affiliates * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software @@ -52,24 +52,6 @@ static void ethosu_network_info_fail(struct ethosu_mailbox_msg *msg) complete(&info->done); } -static int ethosu_network_info_resend(struct ethosu_mailbox_msg *msg) -{ - struct ethosu_network_info *info = - container_of(msg, typeof(*info), msg); - int ret; - - /* Don't resend request if response has already been received */ - if (completion_done(&info->done)) - return 0; - - /* Resend request */ - ret = ethosu_network_info_send(info); - if (ret) - return ret; - - return 0; -} - int ethosu_network_info_request(struct ethosu_network *net, struct ethosu_uapi_network_info *uapi) { @@ -86,7 +68,6 @@ int ethosu_network_info_request(struct ethosu_network *net, info->uapi = uapi; init_completion(&info->done); info->msg.fail = ethosu_network_info_fail; - info->msg.resend = ethosu_network_info_resend; ret = ethosu_mailbox_register(&info->edev->mailbox, &info->msg); if (ret < 0) |