aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/pfow.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd/pfow.h')
-rw-r--r--include/linux/mtd/pfow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/pfow.h b/include/linux/mtd/pfow.h
index 122f3439e1af..c65d7a3be3c6 100644
--- a/include/linux/mtd/pfow.h
+++ b/include/linux/mtd/pfow.h
@@ -128,7 +128,7 @@ static inline void print_drs_error(unsigned dsr)
if (!(dsr & DSR_AVAILABLE))
printk(KERN_NOTICE"DSR.15: (0) Device not Available\n");
- if (prog_status & 0x03)
+ if ((prog_status & 0x03) == 0x03)
printk(KERN_NOTICE"DSR.9,8: (11) Attempt to program invalid "
"half with 41h command\n");
else if (prog_status & 0x02)