diff options
| author | Julia Lawall <[email protected]> | 2010-03-05 13:44:23 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-03-06 11:26:47 -0800 |
| commit | 870a2761a8df7dea7449b4225c9babcf22c6ead4 (patch) | |
| tree | 6cec2579973aad15acfad14f48733585be7a85f2 /include/linux/timerqueue.h | |
| parent | b51e8293182764ca7b1a1bdb28a5c5dc60152c76 (diff) | |
rtc-at91sam9: Correct size given to memset
Memset should be given the size of the structure, not the size of the
pointer.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
type T;
T *x;
expression E;
@@
memset(x, E, sizeof(
+ *
x))
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions