Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: light: hid-sensor-prox: Fit assignment in one line

There is no need to do the assignment to indio_dev->num_channels in two
lines code.

Put it in one line.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Fabio Estevam and committed by
Jonathan Cameron
1ca0259b ae354962

+1 -2
+1 -2
drivers/iio/light/hid-sensor-prox.c
··· 284 284 goto error_free_dev_mem; 285 285 } 286 286 287 - indio_dev->num_channels = 288 - ARRAY_SIZE(prox_channels); 287 + indio_dev->num_channels = ARRAY_SIZE(prox_channels); 289 288 indio_dev->dev.parent = &pdev->dev; 290 289 indio_dev->info = &prox_info; 291 290 indio_dev->name = name;