git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: remove redundant IS_ERR() before error code check
[sfrench/cifs-2.6.git]
/
drivers
/
mtd
/
ubi
/
build.c
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index 25fb72b2efa01a93285f30839ee6643024799e51..2f93c25bbaee3f4f420e963e9b62a9463533cea5 100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-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