From: Mark Einon Date: Tue, 23 Aug 2011 22:40:33 +0000 (+0100) Subject: staging: et131x: Remove unecessary *etdev NULL check in et1310_phy_init() X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~140 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c863c8bcb653be8e2b17b49b24f752392746ee2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/et131x/et1310_phy.c b/drivers/staging/et131x/et1310_phy.c index 2385d04e7487..36534260fae1 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);