Re: [PATCH] staging: mt7621-pci: Fix compiler error 'slot' may be used uninitialized

2019-07-06 Thread René van Dorst
Quoting Sergio Paracuellos : Hi Sergio, Hi René, On Fri, Jul 5, 2019 at 10:35 PM René van Dorst wrote: In commit 802a2f7b2fe3 ("staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function"), slot = port->slot; line was removed. Also other dev_err() print parameter was changed from

Re: [PATCH] staging: mt7621-pci: Fix compiler error 'slot' may be used uninitialized

2019-07-06 Thread Sergio Paracuellos
Hi René, On Fri, Jul 5, 2019 at 10:35 PM René van Dorst wrote: > > In commit 802a2f7b2fe3 ("staging: mt7621-pci: factor out > 'mt7621_pcie_enable_port' function"), slot = port->slot; line was removed. > Also other dev_err() print parameter was changed from slot to port->slot. > So the same

[PATCH] staging: mt7621-pci: Fix compiler error 'slot' may be used uninitialized

2019-07-05 Thread René van Dorst
In commit 802a2f7b2fe3 ("staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function"), slot = port->slot; line was removed. Also other dev_err() print parameter was changed from slot to port->slot. So the same should be done here. This also fixes compiler error: