Skip to contentSkip to conversation

fs/partitions/sun.c endianness annotations

PATCH New Al Viro 1 participant 1 message Oct 14, 2007

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 fs/partitions/sun.c endianness annotations

---
 fs/partitions/sun.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/partitions/sun.c +2 -2
index 794118d..c95e6a6 100644
@@ -95,8 +95,8 @@ int sun_partition(struct parsed_partitions *state, struct block_device *bdev)
 	 * So that old Linux-Sun partitions continue to work,
 	 * alow the VTOC to be used under the additional condition ...
 	 */
-	use_vtoc = use_vtoc || !(label->vtoc.sanity |
-				 label->vtoc.version | label->vtoc.nparts);
+	use_vtoc = use_vtoc || !(label->vtoc.sanity ||
+				 label->vtoc.version || label->vtoc.nparts);
 	spc = be16_to_cpu(label->ntrks) * be16_to_cpu(label->nsect);
 	for (i = 0; i < nparts; i++, p++) {
 		unsigned long st_sector;
Signature · 1 line
1.5.3.GIT