fsl/fman: Remove a useless 'dev_err()' call
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 6 Nov 2017 21:53:32 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:53:34 +0000 (13:53 +0900)
Memory allocation functions already display some informaton in case of
memory allocation failure. There is no need to add an extra 'dev_err' here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c

index 86c1e69f44d6cdee1f5e94fc2117b95e1ca6ac9f..88c0a0636b44562fa68f59c9912e242739d63874 100644 (file)
@@ -615,7 +615,6 @@ static int mac_probe(struct platform_device *_of_dev)
        mac_dev = devm_kzalloc(dev, sizeof(*mac_dev), GFP_KERNEL);
        if (!mac_dev) {
                err = -ENOMEM;
-               dev_err(dev, "devm_kzalloc() = %d\n", err);
                goto _return;
        }
        priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);