mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 08:02:59 -04:00
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:
committed by
Greg Kroah-Hartman
parent
1c10f06940
commit
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user