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>
This commit is contained in:
parent
25850c31c8
commit
e51f37bd3a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user