Loading drivers/mtd/nand/gpio.c +1 −3 Original line number Diff line number Diff line Loading @@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev) return -EINVAL; gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL); if (!gpiomtd) { dev_err(&pdev->dev, "failed to create NAND MTD\n"); if (!gpiomtd) return -ENOMEM; } chip = &gpiomtd->nand_chip; Loading Loading
drivers/mtd/nand/gpio.c +1 −3 Original line number Diff line number Diff line Loading @@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev) return -EINVAL; gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL); if (!gpiomtd) { dev_err(&pdev->dev, "failed to create NAND MTD\n"); if (!gpiomtd) return -ENOMEM; } chip = &gpiomtd->nand_chip; Loading