staging: mt7621-pci: avoid use 'err' local variable
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sat, 20 Jul 2019 07:29:08 +0000 (09:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:58:26 +0000 (09:58 +0200)
commit7f9b583358a4fe31cdbde61e5f50d568be4cc69e
treeb7db2d1375cc02e2f74c2622f533cf2bc1b22820
parent756e4624ddcfdc2792fe389262ba7447f22d8913
staging: mt7621-pci: avoid use 'err' local variable

Function 'mt7621_pcie_request_resources' is using 'err'
local variable to get value returned from 'devm_request_pci_bus_resources'
and returning after that. This is not needed at all. Instead of that
just directly return returned value by the function which is also
returning zero on success.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20190720072908.16795-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c