]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/mtd/nand/cmx270_nand.c
KVM: arm64: vgic-v3: Log which GICv3 system registers are trapped
[mirror_ubuntu-zesty-kernel.git] / drivers / mtd / nand / cmx270_nand.c
index 49133783ca5363f723cb2b9983f02e6ef9ba6b40..226ac0bcafc6539ba6389cf1170f05ee05a2acc6 100644 (file)
@@ -195,9 +195,9 @@ static int __init cmx270_init(void)
        this->write_buf = cmx270_write_buf;
 
        /* Scan to find existence of the device */
-       if (nand_scan (cmx270_nand_mtd, 1)) {
+       ret = nand_scan(cmx270_nand_mtd, 1);
+       if (ret) {
                pr_notice("No NAND device\n");
-               ret = -ENXIO;
                goto err_scan;
        }