Messages in this thread | | | Subject | Re: [PATCH v2 7/8] crypto: ccp: Use the stack and common buffer for INIT command | From | Paolo Bonzini <> | Date | Sat, 17 Apr 2021 14:42:48 +0200 |
| |
On 07/04/21 07:20, Christophe Leroy wrote: >> >> + struct sev_data_init data; > > struct sev_data_init data = {0, 0, 0, 0};
Having to count the number of items is suboptimal. The alternative could be {} (which however is technically not standard C), {0} (a bit mysterious, but it works) and memset. I kept the latter to avoid touching the submitter's patch too much.
Paolo
| |