EISA: Delete error message for a failed memory allocation in eisa_probe()
Omit extra message for a memory allocation failure in probe function. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Marc Zyngier <maz@misterjones.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
91809d22c8
commit
3ea98d470d
1 changed files with 1 additions and 3 deletions
|
@ -324,10 +324,8 @@ static int __init eisa_probe(struct eisa_root_device *root)
|
||||||
* here, simply fail, unless root->force_probe is set. */
|
* here, simply fail, unless root->force_probe is set. */
|
||||||
|
|
||||||
edev = kzalloc(sizeof(*edev), GFP_KERNEL);
|
edev = kzalloc(sizeof(*edev), GFP_KERNEL);
|
||||||
if (!edev) {
|
if (!edev)
|
||||||
dev_err(root->dev, "EISA: Couldn't allocate mainboard slot\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
if (eisa_request_resources(root, edev, 0)) {
|
if (eisa_request_resources(root, edev, 0)) {
|
||||||
dev_warn(root->dev,
|
dev_warn(root->dev,
|
||||||
|
|
Loading…
Add table
Reference in a new issue