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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dbbb24947e
commit
1c863c8bcb
@@ -908,9 +908,6 @@ void et1310_phy_init(struct et131x_adapter *etdev)
|
|||||||
{
|
{
|
||||||
u16 data, index;
|
u16 data, index;
|
||||||
|
|
||||||
if (etdev == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* get the identity (again ?) */
|
/* get the identity (again ?) */
|
||||||
et131x_mii_read(etdev, PHY_ID_1, &data);
|
et131x_mii_read(etdev, PHY_ID_1, &data);
|
||||||
et131x_mii_read(etdev, PHY_ID_2, &data);
|
et131x_mii_read(etdev, PHY_ID_2, &data);
|
||||||
|
Reference in New Issue
Block a user