mirror of https://gitee.com/openkylin/linux.git
tools: iio: lsiio: Remove unused variables
This patch removes unused variables from lsiio.c in order to get rid of the warnings regarding them. Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
976d9ab112
commit
3fca6a2f46
|
@ -95,12 +95,7 @@ static int dump_one_trigger(const char *dev_dir_name)
|
||||||
static void dump_devices(void)
|
static void dump_devices(void)
|
||||||
{
|
{
|
||||||
const struct dirent *ent;
|
const struct dirent *ent;
|
||||||
int number, numstrlen;
|
|
||||||
|
|
||||||
FILE *nameFile;
|
|
||||||
DIR *dp;
|
DIR *dp;
|
||||||
char thisname[IIO_MAX_NAME_LENGTH];
|
|
||||||
char *filename;
|
|
||||||
|
|
||||||
dp = opendir(iio_dir);
|
dp = opendir(iio_dir);
|
||||||
if (dp == NULL) {
|
if (dp == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue