ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups
alloc failures already get standardized OOM messages and a dump_stack. Convert kzalloc's with multiplies to kcalloc. Convert kmalloc's with multiplies to kmalloc_array. Fix a few whitespace defects. Convert a constant 6 to ETH_ALEN. Use parentheses around sizeof. Convert vmalloc/memset to vzalloc. Remove now unused size variables. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
09da6c5f60
commit
b2adaca92c
@@ -4572,7 +4572,6 @@ static int ql_init_device(struct pci_dev *pdev, struct net_device *ndev,
|
||||
qdev->mpi_coredump =
|
||||
vmalloc(sizeof(struct ql_mpi_coredump));
|
||||
if (qdev->mpi_coredump == NULL) {
|
||||
dev_err(&pdev->dev, "Coredump alloc failed.\n");
|
||||
err = -ENOMEM;
|
||||
goto err_out2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user