We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ba492 commit 3a5f80bCopy full SHA for 3a5f80b
drivers/iio/light/ltr501.c
@@ -1279,14 +1279,12 @@ static irqreturn_t ltr501_trigger_handler(int irq, void *p)
1279
struct {
1280
u16 channels[3];
1281
aligned_s64 ts;
1282
- } scan;
+ } scan = { };
1283
__le16 als_buf[2];
1284
u8 mask = 0;
1285
int j = 0;
1286
int ret, psdata;
1287
1288
- memset(&scan, 0, sizeof(scan));
1289
-
1290
/* figure out which data needs to be ready */
1291
if (test_bit(0, indio_dev->active_scan_mask) ||
1292
test_bit(1, indio_dev->active_scan_mask))
0 commit comments