Re: RFC: turn kmalloc+memset(,0,) into kcalloc

Roland Dreier
2005-04-05T19:48:11Z

> or simply
> if (!(ptr = kcalloc(n, size, ...)))
> goto out;
> and save an additional line of screen realestate while you are at it...

No, please don't do that. The general kernel style is to avoid
assignments within conditionals.

- R.