Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61225
b: refs/heads/master
c: 7753f16
h: refs/heads/master
i:
  61223: 0688490
v: v3
  • Loading branch information
Vignesh Babu authored and Artem Bityutskiy committed Jul 18, 2007
1 parent e53b50a commit 7233594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7f0c4dc31f1297a613f1e61a7d682dc9a5e859a
refs/heads/master: 7753f1692f53d82b4cc08084462b0fd2803c1f04
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/moduleparam.h>
#include <linux/stringify.h>
#include <linux/stat.h>
#include <linux/log2.h>
#include "ubi.h"

/* Maximum length of the 'mtd=' parameter */
Expand Down Expand Up @@ -422,8 +423,7 @@ static int io_init(struct ubi_device *ubi)
ubi->hdrs_min_io_size = ubi->mtd->writesize >> ubi->mtd->subpage_sft;

/* Make sure minimal I/O unit is power of 2 */
if (ubi->min_io_size == 0 ||
(ubi->min_io_size & (ubi->min_io_size - 1))) {
if (!is_power_of_2(ubi->min_io_size)) {
ubi_err("bad min. I/O unit");
return -EINVAL;
}
Expand Down

0 comments on commit 7233594

Please sign in to comment.