projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae35496
)
iio: light: hid-sensor-prox: Fit assignment in one line
author
Fabio Estevam
<fabio.estevam@freescale.com>
Fri, 8 May 2015 18:54:00 +0000
(15:54 -0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 14 Jun 2015 14:03:53 +0000
(15:03 +0100)
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>
drivers/iio/light/hid-sensor-prox.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/hid-sensor-prox.c
b/drivers/iio/light/hid-sensor-prox.c
index 0d248476f4c9b64b7479e4135fbddb95e178bae2..45ca056f019ed2832bd68f14833ae2b4a4839fd7 100644
(file)
--- a/
drivers/iio/light/hid-sensor-prox.c
+++ b/
drivers/iio/light/hid-sensor-prox.c
@@
-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;