Skip to content

Commit 2115517

Browse files
Jinjie Ruanjrjohansen
authored andcommitted
apparmor: Remove unused parameter L1 in macro next_comb
In the macro definition of next_comb(), a parameter L1 is accepted, but it is not used. Hence, it should be removed. Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: John Johansen <[email protected]>
1 parent d00c235 commit 2115517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/apparmor/include/label.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int aa_label_next_confined(struct aa_label *l, int i);
160160
#define label_for_each_cont(I, L, P) \
161161
for (++((I).i); ((P) = (L)->vec[(I).i]); ++((I).i))
162162

163-
#define next_comb(I, L1, L2) \
163+
#define next_comb(I, L2) \
164164
do { \
165165
(I).j++; \
166166
if ((I).j >= (L2)->size) { \
@@ -174,7 +174,7 @@ do { \
174174
#define label_for_each_comb(I, L1, L2, P1, P2) \
175175
for ((I).i = (I).j = 0; \
176176
((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \
177-
(I) = next_comb(I, L1, L2))
177+
(I) = next_comb(I, L2))
178178

179179
#define fn_for_each_comb(L1, L2, P1, P2, FN) \
180180
({ \

0 commit comments

Comments
 (0)