Skip to content

Commit

Permalink
tinyiiod: Add missing return statements
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 e808b9d commit 1ef78a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyiiod/tinyiiod.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ static ssize_t iiod_readfd(struct parser_pdata *pdata, void *buf, size_t len)
{
struct iiod_ctx *ctx = container_of(pdata, struct iiod_ctx, parser_pdata);

ctx->read_cb(ctx->pdata, buf, len);
return ctx->read_cb(ctx->pdata, buf, len);
}

static ssize_t iiod_writefd(struct parser_pdata *pdata, const void *buf, size_t len)
{
struct iiod_ctx *ctx = container_of(pdata, struct iiod_ctx, parser_pdata);

ctx->write_cb(ctx->pdata, buf, len);
return ctx->write_cb(ctx->pdata, buf, len);
}

int iiod_interpreter(struct iio_context *ctx,
Expand Down

0 comments on commit 1ef78a7

Please sign in to comment.