]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-pci-phy: remove some unnecessary local variables
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 17 Apr 2019 11:58:36 +0000 (13:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2019 13:01:33 +0000 (15:01 +0200)
commit4b38a5fa56de725cd1c8fe517e297b9141691490
tree4c1e4b133ab0b5f566bd9d4a84ab508bf6481ea4
parent724184e10f583514de37fd73231c1ff6ce1552bb
staging: mt7621-pci-phy: remove some unnecessary local variables

Device tree is not using child nodes anymore so the 'child_np' variable
can safely removed. This also simplifies the error path to be able to
directly return errors removing also the 'ret' variable.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c