powerpc/powernv/sriov: Fix use of uninitialised variable
authorOliver O'Halloran <oohall@gmail.com>
Mon, 3 Aug 2020 07:54:08 +0000 (17:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Aug 2020 12:13:13 +0000 (22:13 +1000)
commit2075ec9896c5aef01e837198381d04cfa6452317
treec9bdcd2aa6290d7fc3c33a12c04f9b2aa3272143
parent872d11bca9c29ed19595c993b9f552ffe9b63dcb
powerpc/powernv/sriov: Fix use of uninitialised variable

Initialising the value before using it is generally regarded as a good
idea so do that.

Fixes: 4c51f3e1e870 ("powerpc/powernv/sriov: Make single PE mode a per-BAR setting")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200803075408.132601-1-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-sriov.c