iio: core: Add misssing braces
Silences the following checkpatch warning: WARNING: sizeof *iio_attr should be sizeof(*iio_attr) Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
3176dd5d3b
commit
670c11033d
@ -685,7 +685,7 @@ int __iio_add_chan_devattr(const char *postfix,
|
||||
int ret;
|
||||
struct iio_dev_attr *iio_attr, *t;
|
||||
|
||||
iio_attr = kzalloc(sizeof *iio_attr, GFP_KERNEL);
|
||||
iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL);
|
||||
if (iio_attr == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto error_ret;
|
||||
|
Loading…
Reference in New Issue
Block a user