* function.Driver can dynamically switch to them if the 1/2kB hash
         * table is full.
         */
-       if (pep->htpr == NULL) {
+       if (!pep->htpr) {
                pep->htpr = dma_zalloc_coherent(pep->dev->dev.parent,
                                                HASH_ADDR_TABLE_SIZE,
                                                &pep->htpr_dma, GFP_KERNEL);
-               if (pep->htpr == NULL)
+               if (!pep->htpr)
                        return -ENOMEM;
        } else {
                memset(pep->htpr, 0, HASH_ADDR_TABLE_SIZE);
 static int pxa168_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr,
                               int cmd)
 {
-       if (dev->phydev != NULL)
+       if (dev->phydev)
                return phy_mii_ioctl(dev->phydev, ifr, cmd);
 
        return -EOPNOTSUPP;
        pep->timeout.data = (unsigned long)pep;
 
        pep->smi_bus = mdiobus_alloc();
-       if (pep->smi_bus == NULL) {
+       if (!pep->smi_bus) {
                err = -ENOMEM;
                goto err_netdev;
        }