aboutsummaryrefslogtreecommitdiff
path: root/helper/cli.c
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2021-11-03 16:15:15 +0200
committerMatias Elo <matias.elo@nokia.com>2021-11-12 09:44:18 +0200
commitc4b1cde446777a397c99058de5c19aeffe1faacc (patch)
tree8ea5cd0f27005f655f6efe9d9ed4e49271cfb683 /helper/cli.c
parentffce66a6945b62f10c37ab4b415810ae520828c4 (diff)
helper: cli: remove unused instance parameter from odph_cli_init()
Now that the CLI helper no longer creates a thread, the ODP instance is not needed by odph_cli_init(). Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'helper/cli.c')
-rw-r--r--helper/cli.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/helper/cli.c b/helper/cli.c
index e9ca2f783..97fa232a3 100644
--- a/helper/cli.c
+++ b/helper/cli.c
@@ -43,7 +43,6 @@ typedef struct {
/* Guards cli_fd and run, which must be accessed atomically. */
odp_spinlock_t lock;
odp_spinlock_t api_lock;
- odp_instance_t instance;
odph_cli_param_t cli_param;
struct sockaddr_in addr;
uint32_t num_user_commands;
@@ -75,7 +74,7 @@ static cli_shm_t *shm_lookup(void)
return shm;
}
-int odph_cli_init(odp_instance_t instance, const odph_cli_param_t *param)
+int odph_cli_init(const odph_cli_param_t *param)
{
if (odp_shm_lookup(shm_name) != ODP_SHM_INVALID) {
ODPH_ERR("Error: shm %s already exists\n", shm_name);
@@ -101,7 +100,6 @@ int odph_cli_init(odp_instance_t instance, const odph_cli_param_t *param)
odp_spinlock_init(&shm->api_lock);
shm->listen_fd = -1;
shm->cli_fd = -1;
- shm->instance = instance;
shm->addr.sin_family = AF_INET;
shm->addr.sin_port = htons(param->port);