Skip to content

Commit

Permalink
iio:adc:at91-sama5d2: code cleanup
Browse files Browse the repository at this point in the history
Use var type for sizeof argument instead of the struct name.

Signed-off-by: Ludovic Desroches <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
ldesroches authored and jic23 committed Jan 23, 2016
1 parent d7bdcc3 commit 61be8fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iio/adc/at91-sama5d2_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ static int at91_adc_probe(struct platform_device *pdev)
struct resource *res;
int ret;

indio_dev = devm_iio_device_alloc(&pdev->dev,
sizeof(struct at91_adc_state));
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;

Expand Down

0 comments on commit 61be8fd

Please sign in to comment.