Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e51f37bd authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25850c31
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);