Skip to content

Commit

Permalink
[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 17, 2006
1 parent e8d3293 commit fd0e518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/mtdconcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
return -EINVAL;

/* Check alignment */
if (mtd->writesize > 1)
if ((to % mtd->writesize) || (total_len % mtd->writesize))
if (mtd->oobblock > 1)
if ((to % mtd->oobblock) || (total_len % mtd->oobblock))
return -EINVAL;

/* make a copy of vecs */
Expand Down

0 comments on commit fd0e518

Please sign in to comment.