struct phy_driver *phydrv = phydev->drv;
        int value = -1;
 
-       if (phydrv->read_mmd_indirect == NULL) {
+       if (!phydrv->read_mmd_indirect) {
                struct mii_bus *bus = phydev->bus;
 
                mutex_lock(&bus->mdio_lock);
 {
        struct phy_driver *phydrv = phydev->drv;
 
-       if (phydrv->write_mmd_indirect == NULL) {
+       if (!phydrv->write_mmd_indirect) {
                struct mii_bus *bus = phydev->bus;
 
                mutex_lock(&bus->mdio_lock);
 
 
        /* We allocate the device, and initialize the default values */
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
-       if (NULL == dev)
+       if (!dev)
                return ERR_PTR(-ENOMEM);
 
        dev->dev.release = phy_device_release;
        dev->bus = bus;
        dev->dev.parent = &bus->dev;
        dev->dev.bus = &mdio_bus_type;
-       dev->irq = bus->irq != NULL ? bus->irq[addr] : PHY_POLL;
+       dev->irq = bus->irq ? bus->irq[addr] : PHY_POLL;
        dev_set_name(&dev->dev, PHY_ID_FMT, bus->id, addr);
 
        dev->state = PHY_DOWN;
        /* Assume that if there is no driver, that it doesn't
         * exist, and we should use the genphy driver.
         */
-       if (NULL == d->driver) {
+       if (!d->driver) {
                if (phydev->is_c45)
                        d->driver = &genphy_driver[GENPHY_DRV_10G].driver;
                else