Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47571
b: refs/heads/master
c: a470e18
h: refs/heads/master
i:
  47569: 35751e6
  47567: 1746056
v: v3
  • Loading branch information
Olaf Hering authored and Linus Torvalds committed Feb 11, 2007
1 parent 3a94242 commit 06cf894
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 4419d1ac7def3c2f74cab15e4a1c69cffcaadedd
refs/heads/master: a470e18f53940e7bd07b09f01c0970f653e268bf
8 changes: 4 additions & 4 deletions trunk/fs/partitions/msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ static int aix_magic_present(unsigned char *p, struct block_device *bdev)
unsigned char *d;
int slot, ret = 0;

if (p[0] != AIX_LABEL_MAGIC1 &&
p[1] != AIX_LABEL_MAGIC2 &&
p[2] != AIX_LABEL_MAGIC3 &&
p[3] != AIX_LABEL_MAGIC4)
if (!(p[0] == AIX_LABEL_MAGIC1 &&
p[1] == AIX_LABEL_MAGIC2 &&
p[2] == AIX_LABEL_MAGIC3 &&
p[3] == AIX_LABEL_MAGIC4))
return 0;
/* Assume the partition table is valid if Linux partitions exists */
for (slot = 1; slot <= 4; slot++, pt++) {
Expand Down

0 comments on commit 06cf894

Please sign in to comment.