projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3176dd5
)
iio: core: Add misssing braces
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 24 Oct 2013 11:53:00 +0000
(12:53 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Thu, 24 Oct 2013 13:42:44 +0000
(14:42 +0100)
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>
drivers/iio/industrialio-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/industrialio-core.c
b/drivers/iio/industrialio-core.c
index e4780b41ae04b5708a5e5d9bc93122ed5faa455e..18f72e3d0ed6e6c8e9bb73ec8616124a2422aed4 100644
(file)
--- a/
drivers/iio/industrialio-core.c
+++ b/
drivers/iio/industrialio-core.c
@@
-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;