This set of patches resolves some checks reported by the checkpatch
tool.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
        buf = kasprintf(GFP_KERNEL, "amd-xgbe-%s", pdata->netdev->name);
        pdata->xgbe_debugfs = debugfs_create_dir(buf, NULL);
-       if (pdata->xgbe_debugfs == NULL) {
+       if (!pdata->xgbe_debugfs) {
                netdev_err(pdata->netdev, "debugfs_create_dir failed\n");
                return;
        }
 
        struct phy_device *phydev = pdata->phydev;
        int new_state = 0;
 
-       if (phydev == NULL)
+       if (!phydev)
                return;
 
        if (phydev->link) {
 
        }
 
        mii = mdiobus_alloc();
-       if (mii == NULL) {
+       if (!mii) {
                dev_err(pdata->dev, "mdiobus_alloc failed\n");
                ret = -ENOMEM;
                goto err_node_get;