]> 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)
commitaa6c0c7032c10173d52fe487169301a8363e37be
tree4c1e4b133ab0b5f566bd9d4a84ab508bf6481ea4
parentb088d2f2424319f01f94b17f715e5670cb7d5440
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