projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rtc: rx8010: prefer sizeof(*val) over sizeof(struct type_of_val)
[linux-2.6-microblaze.git]
/
drivers
/
rtc
/
rtc-rx8010.c
diff --git
a/drivers/rtc/rtc-rx8010.c
b/drivers/rtc/rtc-rx8010.c
index
dba7c3f
..
aa357f8
100644
(file)
--- a/
drivers/rtc/rtc-rx8010.c
+++ b/
drivers/rtc/rtc-rx8010.c
@@
-429,7
+429,7
@@
static int rx8010_probe(struct i2c_client *client,
return -EIO;
}
- rx8010 = devm_kzalloc(dev, sizeof(
struct rx8010_data
), GFP_KERNEL);
+ rx8010 = devm_kzalloc(dev, sizeof(
*rx8010
), GFP_KERNEL);
if (!rx8010)
return -ENOMEM;