On 08/05/15 19:54, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > 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@xxxxxxxxxxxxx> Fair enough, but I'll have to wait for the fix to the line above this to propagate through to the staging-next tree before applying this. Please do remind me if I seem to have forgotten about it! Jonathan > --- > drivers/iio/light/hid-sensor-prox.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c > index 124a8f8..4ed42df 100644 > --- a/drivers/iio/light/hid-sensor-prox.c > +++ b/drivers/iio/light/hid-sensor-prox.c > @@ -286,8 +286,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; > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html