Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ca0259b authored by Fabio Estevam's avatar Fabio Estevam Committed by Jonathan Cameron
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ae354962
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -284,8 +284,7 @@ static int hid_prox_probe(struct platform_device *pdev)
		goto error_free_dev_mem;
	}

	indio_dev->num_channels =
				ARRAY_SIZE(prox_channels);
	indio_dev->num_channels = ARRAY_SIZE(prox_channels);
	indio_dev->dev.parent = &pdev->dev;
	indio_dev->info = &prox_info;
	indio_dev->name = name;