OSDN Git Service

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)
commitd43f53c6cc926b18316a7e835348363e4a10b61e
tree4c1e4b133ab0b5f566bd9d4a84ab508bf6481ea4
parentfc1e669ad15aff8d1cd14aa661279f2119471d0b
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