History

iio:dummy: Drop set but unused variable len.

Not sure what the thinking was here, as lost to history, but the variable is clearly not used so get rid of it. Warning seen with clang W=1 tests (may be present with other compilers and build options).

Jonathan Cameron committed 4 years ago

Commit e8ffca61 parent ea011ad1 file · +0 −2Browse files

Unified · Split

drivers/iio/dummy/iio_simple_dummy_buffer.c+0−2
@@ -45,7 +45,6 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) · 44 unmodified lines
4545 {
4646 struct iio_poll_func *pf = p;
4747 struct iio_dev *indio_dev = pf->indio_dev;
48− int len = 0;
4948 u16 *data;
5049
5150 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL);
@@ -79,7 +78,6 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) · 27 unmodified lines
7978 indio_dev->masklength, j);
8079 /* random access read from the 'device' */
8180 data[i] = fakedata[j];
82− len += 2;
8381 }
8482 }
8583

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t