]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/mtd/ubi/build.c
Merge tag 'wireless-drivers-2020-02-08' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / drivers / mtd / ubi / build.c
index 25fb72b2efa01a93285f30839ee6643024799e51..2f93c25bbaee3f4f420e963e9b62a9463533cea5 100644 (file)
@@ -1180,7 +1180,7 @@ static struct mtd_info * __init open_mtd_device(const char *mtd_dev)
                 * MTD device name.
                 */
                mtd = get_mtd_device_nm(mtd_dev);
-               if (IS_ERR(mtd) && PTR_ERR(mtd) == -ENODEV)
+               if (PTR_ERR(mtd) == -ENODEV)
                        /* Probably this is an MTD character device node path */
                        mtd = open_mtd_by_chdev(mtd_dev);
        } else