Re: [PATCH 2/7] lmb: Tidy up structure access

2023-08-23 Thread Simon Glass
Hi Heinrich, On Wed, 23 Aug 2023 at 09:44, Heinrich Schuchardt wrote: > > On 23.08.23 15:41, Simon Glass wrote: > > In some cases it helps to define a local variable pointing to the > > structure being accessed. This avoids lots of repeated code. > > > > There is no need to individually assign ea

Re: [PATCH 2/7] lmb: Tidy up structure access

2023-08-23 Thread Heinrich Schuchardt
On 23.08.23 15:41, Simon Glass wrote: In some cases it helps to define a local variable pointing to the structure being accessed. This avoids lots of repeated code. There is no need to individually assign each struct member, so use a structure assignment instead. Signed-off-by: Simon Glass ---

[PATCH 2/7] lmb: Tidy up structure access

2023-08-23 Thread Simon Glass
In some cases it helps to define a local variable pointing to the structure being accessed. This avoids lots of repeated code. There is no need to individually assign each struct member, so use a structure assignment instead. Signed-off-by: Simon Glass --- lib/lmb.c | 54 ++