Skip to content

Commit

Permalink
Cleanup struct tx_st40_session_context_t, remove fb_count set but unused
Browse files Browse the repository at this point in the history
  • Loading branch information
tszumski committed Oct 11, 2024
1 parent 4fcdc82 commit c711310
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions media-proxy/include/mtl.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ typedef struct {

size_t pkt_len;

uint32_t fb_count; /* Frame buffer count. */

/* memif parameters */
memif_ops_t memif_ops;
/* share memory arguments */
Expand Down
15 changes: 0 additions & 15 deletions media-proxy/src/shm_memif_st40.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ int tx_st40_on_connect(memif_conn_handle_t conn, void* priv_data)
return err;
}

memif_details_t md = { 0 };
ssize_t buflen = 2048;
char* buf = (char*)calloc(1, buflen);

err = memif_get_details(conn, &md, buf, buflen);
if (err != MEMIF_ERR_SUCCESS) {
INFO("%s", memif_strerror(err));
free(buf);
return err;
}

tx_ctx->fb_count = md.tx_queues[0].ring_size;

free(buf);

tx_ctx->shm_ready = 1;

print_memif_details(conn);
Expand Down

0 comments on commit c711310

Please sign in to comment.