diff options
author | 2017-11-06 22:53:32 +0100 | |
---|---|---|
committer | 2017-11-08 13:53:34 +0900 | |
commit | e51f37bd3ae8e09d131bce5485ec7c5b03726b02 (patch) | |
tree | a751708e597d0ba9da8d17e636c51efe5beaa88b /drivers/net/ethernet/freescale | |
parent | fsl/fman: Add a missing 'of_node_put()' call in an error handling path (diff) | |
download | linux-e51f37bd3ae8e09d131bce5485ec7c5b03726b02.tar.gz linux-e51f37bd3ae8e09d131bce5485ec7c5b03726b02.tar.bz2 linux-e51f37bd3ae8e09d131bce5485ec7c5b03726b02.zip |
fsl/fman: Remove a useless 'dev_err()' call
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>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/mac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index 86c1e69f44d6..88c0a0636b44 100644 --- a/drivers/net/ethernet/freescale/fman/mac.c +++ b/drivers/net/ethernet/freescale/fman/mac.c @@ -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); |