Message ID | 2c0d1f34-cdb0-f1c0-7243-4e80ad89af6a@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 3aa5ad391581..995bdc7ff4e6 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c @@ -125,7 +125,5 @@ static int maxiradio_probe(struct pci_dev *pdev, - if (dev == NULL) { - dev_err(&pdev->dev, "not enough memory\n"); + if (!dev) return -ENOMEM; - } v4l2_dev = &dev->v4l2_dev; v4l2_device_set_name(v4l2_dev, "maxiradio", &maxiradio_instance);