summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-twl.c
diff options
context:
space:
mode:
authorJulia Lawall2010-03-05 22:44:23 +0100
committerLinus Torvalds2010-03-06 20:26:47 +0100
commit870a2761a8df7dea7449b4225c9babcf22c6ead4 (patch)
tree6cec2579973aad15acfad14f48733585be7a85f2 /drivers/rtc/rtc-twl.c
parentrtc-pcf2123: move pcf2123_remove to .devexit.text (diff)
downloadkernel-qcow2-linux-870a2761a8df7dea7449b4225c9babcf22c6ead4.tar.gz
kernel-qcow2-linux-870a2761a8df7dea7449b4225c9babcf22c6ead4.tar.xz
kernel-qcow2-linux-870a2761a8df7dea7449b4225c9babcf22c6ead4.zip
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 <julia@diku.dk> Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-twl.c')
0 files changed, 0 insertions, 0 deletions