Skip to content

Commit 4da2bd3

Browse files
Joe Perchesmattst88
authored andcommitted
alpha: Avoid comma separated statements
Use semicolons and braces. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
1 parent 6b6b64a commit 4da2bd3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

arch/alpha/kernel/pci_iommu.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ iommu_arena_find_pages(struct device *dev, struct pci_iommu_arena *arena,
127127
goto again;
128128
}
129129

130-
if (ptes[p+i])
131-
p = ALIGN(p + i + 1, mask + 1), i = 0;
132-
else
130+
if (ptes[p+i]) {
131+
p = ALIGN(p + i + 1, mask + 1);
132+
i = 0;
133+
} else {
133134
i = i + 1;
135+
}
134136
}
135137

136138
if (i < n) {

0 commit comments

Comments
 (0)