diff options
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 15a62db656de..56255c85d97b 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -1336,7 +1336,7 @@ static int onenand_panic_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | /* Reject writes, which are not page aligned */ | 1338 | /* Reject writes, which are not page aligned */ |
1339 | if (unlikely(NOTALIGNED(to)) || unlikely(NOTALIGNED(len))) { | 1339 | if (unlikely(NOTALIGNED(to) || NOTALIGNED(len))) { |
1340 | printk(KERN_ERR "onenand_panic_write: Attempt to write not page aligned data\n"); | 1340 | printk(KERN_ERR "onenand_panic_write: Attempt to write not page aligned data\n"); |
1341 | return -EINVAL; | 1341 | return -EINVAL; |
1342 | } | 1342 | } |
@@ -1466,7 +1466,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to, | |||
1466 | } | 1466 | } |
1467 | 1467 | ||
1468 | /* Reject writes, which are not page aligned */ | 1468 | /* Reject writes, which are not page aligned */ |
1469 | if (unlikely(NOTALIGNED(to)) || unlikely(NOTALIGNED(len))) { | 1469 | if (unlikely(NOTALIGNED(to) || NOTALIGNED(len))) { |
1470 | printk(KERN_ERR "onenand_write_ops_nolock: Attempt to write not page aligned data\n"); | 1470 | printk(KERN_ERR "onenand_write_ops_nolock: Attempt to write not page aligned data\n"); |
1471 | return -EINVAL; | 1471 | return -EINVAL; |
1472 | } | 1472 | } |