]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-topcliff-pch.c
Merge tag 'renesas-sh-drivers-for-v3.16' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / spi / spi-topcliff-pch.c
index f406b30af961fd8f52e969a665ce46fb7b46352c..f05abf89c067219579962565c26577a943132f0e 100644 (file)
@@ -1578,14 +1578,11 @@ static int pch_spi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        struct pch_pd_dev_save *pd_dev_save;
 
        pd_dev_save = kzalloc(sizeof(struct pch_pd_dev_save), GFP_KERNEL);
-       if (!pd_dev_save) {
-               dev_err(&pdev->dev, "%s Can't allocate pd_dev_sav\n", __func__);
+       if (!pd_dev_save)
                return -ENOMEM;
-       }
 
        board_dat = kzalloc(sizeof(struct pch_spi_board_data), GFP_KERNEL);
        if (!board_dat) {
-               dev_err(&pdev->dev, "%s Can't allocate board_dat\n", __func__);
                retval = -ENOMEM;
                goto err_no_mem;
        }