Skip to content

Commit e51f37b

Browse files
tititiou36davem330
authored andcommitted
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>
1 parent 25850c3 commit e51f37b

File tree

1 file changed

+0
-1
lines changed
  • drivers/net/ethernet/freescale/fman

1 file changed

+0
-1
lines changed

drivers/net/ethernet/freescale/fman/mac.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ static int mac_probe(struct platform_device *_of_dev)
615615
mac_dev = devm_kzalloc(dev, sizeof(*mac_dev), GFP_KERNEL);
616616
if (!mac_dev) {
617617
err = -ENOMEM;
618-
dev_err(dev, "devm_kzalloc() = %d\n", err);
619618
goto _return;
620619
}
621620
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);

0 commit comments

Comments
 (0)