Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24840
b: refs/heads/master
c: b175d03
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Linus Torvalds committed Mar 31, 2006
1 parent d94b390 commit b1c8b71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 87d10f3c7954d143e509a2af2bca2a27aeb3114d
refs/heads/master: b175d03dd207283609b7f8bfdaa5dc93ac9b16dd
7 changes: 4 additions & 3 deletions trunk/drivers/mtd/cmdlinepart.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@


/* special size referring to all the remaining space in a partition */
#define SIZE_REMAINING 0xffffffff
#define SIZE_REMAINING UINT_MAX
#define OFFSET_CONTINUOUS UINT_MAX

struct cmdline_mtd_partition {
struct cmdline_mtd_partition *next;
Expand Down Expand Up @@ -75,7 +76,7 @@ static struct mtd_partition * newpart(char *s,
{
struct mtd_partition *parts;
unsigned long size;
unsigned long offset = 0;
unsigned long offset = OFFSET_CONTINUOUS;
char *name;
int name_len;
unsigned char *extra_mem;
Expand Down Expand Up @@ -314,7 +315,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
{
for(i = 0, offset = 0; i < part->num_parts; i++)
{
if (!part->parts[i].offset)
if (part->parts[i].offset == OFFSET_CONTINUOUS)
part->parts[i].offset = offset;
else
offset = part->parts[i].offset;
Expand Down

0 comments on commit b1c8b71

Please sign in to comment.