Fix a typo in a for loop (wrong variable).

This commit is contained in:
Uwe Hermann 2015-03-31 22:58:50 +02:00
parent ce3ecb7049
commit 2cca921d91
1 changed files with 3 additions and 3 deletions

View File

@ -147,8 +147,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
GSList *l, *devices, *conn_devices; GSList *l, *devices, *conn_devices;
struct libusb_device_descriptor des; struct libusb_device_descriptor des;
libusb_device **devlist; libusb_device **devlist;
int ret, j; int ret;
unsigned int i; unsigned int i, j;
const char *conn; const char *conn;
char connection_id[64]; char connection_id[64];
@ -204,7 +204,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
sdi->driver = di; sdi->driver = di;
sdi->connection_id = g_strdup(connection_id); sdi->connection_id = g_strdup(connection_id);
for (j = 0; i < ARRAY_SIZE(channel_names); j++) for (j = 0; j < ARRAY_SIZE(channel_names); j++)
sr_channel_new(sdi, j, SR_CHANNEL_LOGIC, TRUE, sr_channel_new(sdi, j, SR_CHANNEL_LOGIC, TRUE,
channel_names[j]); channel_names[j]);