fw/comm/msgb: fix length parameter in memset-call

Found by clang:
warning: argument to 'sizeof' in 'memset' call is the same expression
as the destination; did you mean to remove the addressof?

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2011-08-31 22:07:18 +02:00
parent ff82113350
commit d7410b752f
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ void *_talloc_zero(void *ctx, unsigned int size, const char *name)
for (i = 0; i < ARRAY_SIZE(msgs); i++) {
if (!msgs[i].allocated) {
msgs[i].allocated = 1;
memset(&msgs[i].msg, 0, sizeof(&msgs[i].msg));
memset(&msgs[i].buf, 0, sizeof(&msgs[i].buf));
memset(&msgs[i].msg, 0, sizeof(msgs[i].msg));
memset(&msgs[i].buf, 0, sizeof(msgs[i].buf));
local_irq_restore(flags);
return &msgs[i].msg;
}