Changeset 36042


Ignore:
Timestamp:
2013-03-15T16:49:55+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: remove superfluous pdata checks

The presence of the platform data is already verified in
ar8327_hw_init, and the driver does not start without that
anyway.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r35642 r36042  
    11281128        pdata = priv->phy->dev.platform_data; 
    11291129 
    1130         if (pdata && port == AR8216_PORT_CPU) 
     1130        if (port == AR8216_PORT_CPU) 
    11311131                cfg = &pdata->port0_cfg; 
    1132         else if (pdata && port == 6) 
     1132        else if (port == 6) 
    11331133                cfg = &pdata->port6_cfg; 
    11341134        else 
Note: See TracChangeset for help on using the changeset viewer.