Skip to content

Commit

Permalink
iiod/responder: Remove unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Molloy <[email protected]>
  • Loading branch information
pamolloy authored and dNechita committed Feb 11, 2025
1 parent e06b175 commit 6b463b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions iiod/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ static void handle_timeout(struct parser_pdata *pdata,
struct iiod_command_data *cmd_data)
{
struct iiod_io *io = iiod_command_get_default_io(cmd_data);
struct iio_context *ctx = pdata->ctx;
int ret;

ret = iio_context_set_timeout(pdata->ctx, cmd->code);
Expand Down Expand Up @@ -173,7 +172,6 @@ static void handle_write_attr(struct parser_pdata *pdata,
{
struct iiod_io *io = iiod_command_get_default_io(cmd_data);
const struct iio_attr *attr;
size_t count;
ssize_t ret = -EINVAL;
uint64_t len;
struct iiod_buf buf;
Expand Down Expand Up @@ -520,7 +518,6 @@ static struct iio_block * get_iio_block(struct parser_pdata *pdata,
{
struct block_entry *entry;
struct iio_block *block = NULL;
int err;

iio_mutex_lock(entry_buf->lock);

Expand All @@ -545,7 +542,6 @@ static void handle_free_buffer(struct parser_pdata *pdata,
{
struct iiod_io *io = iiod_command_get_default_io(cmd_data);
const struct iio_device *dev;
struct block_entry *block_entry, *block_next;
struct buffer_entry *entry, *buf_entry;
struct iio_buffer *buf;
int ret = -ENODEV;
Expand Down Expand Up @@ -1038,7 +1034,7 @@ static void handle_free_evstream(struct parser_pdata *pdata,
const struct iiod_command *cmd,
struct iiod_command_data *cmd_data)
{
struct evstream_entry *entry, *each;
struct evstream_entry *entry;
struct iiod_io *io = iiod_command_get_default_io(cmd_data);
int ret = 0;

Expand Down

0 comments on commit 6b463b5

Please sign in to comment.