Skip to content

Commit

Permalink
staging: et131x: Remove unecessary *etdev NULL check in et1310_phy_in…
Browse files Browse the repository at this point in the history
…it()

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>
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent dbbb249 commit 1c863c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/et131x/et1310_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c863c8

Please sign in to comment.