staging: kpc2000: remove unnecessary oom message in core.c
Fixes checkpatch.pl warning "Possible unnecessary 'out of memory' message". Signed-off-by: Simon Sandström <simon@nikanor.nu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
1c10f06940
Коммит
5298be4877
|
@ -319,11 +319,8 @@ static int kp2000_pcie_probe(struct pci_dev *pdev,
|
|||
* Step 1: Allocate a struct for the pcard
|
||||
*/
|
||||
pcard = kzalloc(sizeof(struct kp2000_device), GFP_KERNEL);
|
||||
if (!pcard) {
|
||||
dev_err(&pdev->dev,
|
||||
"probe: failed to allocate private card data\n");
|
||||
if (!pcard)
|
||||
return -ENOMEM;
|
||||
}
|
||||
dev_dbg(&pdev->dev, "probe: allocated struct kp2000_device @ %p\n",
|
||||
pcard);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче