diff options
-rw-r--r-- | drivers/iio/industrialio-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index e4780b41ae04..18f72e3d0ed6 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c | |||
@@ -685,7 +685,7 @@ int __iio_add_chan_devattr(const char *postfix, | |||
685 | int ret; | 685 | int ret; |
686 | struct iio_dev_attr *iio_attr, *t; | 686 | struct iio_dev_attr *iio_attr, *t; |
687 | 687 | ||
688 | iio_attr = kzalloc(sizeof *iio_attr, GFP_KERNEL); | 688 | iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); |
689 | if (iio_attr == NULL) { | 689 | if (iio_attr == NULL) { |
690 | ret = -ENOMEM; | 690 | ret = -ENOMEM; |
691 | goto error_ret; | 691 | goto error_ret; |