mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 23:13:00 +00:00
w1: matrox: remove unnecessary ENOMEM messages
Core already prints detailed reports on out of memory: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230415104304.104134-12-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
115ddc758b
commit
4f4129e4e2
|
@ -122,13 +122,8 @@ static int matrox_w1_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
|||
|
||||
dev = kzalloc(sizeof(struct matrox_device) +
|
||||
sizeof(struct w1_bus_master), GFP_KERNEL);
|
||||
if (!dev) {
|
||||
dev_err(&pdev->dev,
|
||||
"%s: Failed to create new matrox_device object.\n",
|
||||
__func__);
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
dev->bus_master = (struct w1_bus_master *)(dev + 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user