Re: [Qemu-devel] [PATCH 2/2] cputlb: Tidy memset of arrays

2013-12-22 Thread Aurelien Jarno
On Sat, Dec 07, 2013 at 10:44:52AM +1300, Richard Henderson wrote: > Don't duplicate the array length computation in the memset > when plain sizeof can produce the correct results. > > Signed-off-by: Richard Henderson > --- > cputlb.c| 2 +- > translate-all.c | 5 ++--- > 2 files changed

[Qemu-devel] [PATCH 2/2] cputlb: Tidy memset of arrays

2013-12-06 Thread Richard Henderson
Don't duplicate the array length computation in the memset when plain sizeof can produce the correct results. Signed-off-by: Richard Henderson --- cputlb.c| 2 +- translate-all.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cputlb.c b/cputlb.c index d2da404..