diff options
author | Mark Einon <mark.einon@gmail.com> | 2011-08-23 23:40:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-23 16:25:27 -0700 |
commit | 1c863c8bcb653be8e2b17b49b24f752392746ee2 (patch) | |
tree | ba36c62b56feda1b2b0b0df0114a6f235abab824 /drivers/staging/et131x/et1310_phy.c | |
parent | dbbb24947e1bea5e6034ae2edfbf1be5b8f2b062 (diff) | |
download | op-kernel-dev-1c863c8bcb653be8e2b17b49b24f752392746ee2.zip op-kernel-dev-1c863c8bcb653be8e2b17b49b24f752392746ee2.tar.gz |
staging: et131x: Remove unecessary *etdev NULL check in et1310_phy_init()
It is impossible to get to this function with the pointer being NULL.
Tested on an ET-131x device.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_phy.c')
-rw-r--r-- | drivers/staging/et131x/et1310_phy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/et131x/et1310_phy.c b/drivers/staging/et131x/et1310_phy.c index 2385d04..3653426 100644 --- a/drivers/staging/et131x/et1310_phy.c +++ b/drivers/staging/et131x/et1310_phy.c @@ -908,9 +908,6 @@ void et1310_phy_init(struct et131x_adapter *etdev) { u16 data, index; - if (etdev == NULL) - return; - /* get the identity (again ?) */ et131x_mii_read(etdev, PHY_ID_1, &data); et131x_mii_read(etdev, PHY_ID_2, &data); |