Re: [PATCH v2] powerpc/xive: Avoid unitialized variable

2018-08-24 Thread Cédric Le Goater
On 08/24/2018 01:26 AM, Breno Leitao wrote: > From: Breno Leitao > > Function xive_native_get_ipi() might uses chip_id without it being > initialized. > > This gives the following error on 'smatch' tool: > > error: uninitialized symbol 'chip_id' > > The suggestion is using xc->chip_id in

[PATCH v2] powerpc/xive: Avoid unitialized variable

2018-08-23 Thread Breno Leitao
From: Breno Leitao Function xive_native_get_ipi() might uses chip_id without it being initialized. This gives the following error on 'smatch' tool: error: uninitialized symbol 'chip_id' The suggestion is using xc->chip_id instead of consulting the OF for chip id, which is safe since xi