]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] hpsa: Change memset using sizeof(ptr) to sizeof(*ptr)
authorJoe Perches <joe@perches.com>
Mon, 9 May 2011 06:32:40 +0000 (23:32 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 17 May 2011 07:19:27 +0000 (11:19 +0400)
commit7630abd0c690e90cea9412846f596fe1565aaa0e
tree395c8bac6bc936ffb57192ec47a02e16f522d4c7
parent51f52a47527a07e45746b1bac1ab6123892095a0
[SCSI] hpsa: Change memset using sizeof(ptr) to sizeof(*ptr)

Not at all sure this is correct or appropriate to change,
but this seems odd.

Found via coccinelle script

@@
type T;
T* ptr;
expression E1;
@@

* memset(E1, 0, sizeof(ptr));

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/hpsa.c