Skip to content

Commit

Permalink
codacity: fix buffer.c: struct member 'callback_wrapper_data' is neve…
Browse files Browse the repository at this point in the history
…r used.

So, remove it.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Apr 6, 2020
1 parent d45eeb2 commit d7c6451
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
#include <errno.h>
#include <string.h>

struct callback_wrapper_data {
ssize_t (*callback)(const struct iio_channel *, void *, size_t, void *);
void *data;
uint32_t *mask;
};

static bool device_is_high_speed(const struct iio_device *dev)
{
/* Little trick: We call the backend's get_buffer() function, which is
Expand Down

0 comments on commit d7c6451

Please sign in to comment.