From: Christian Göttsche Date: Fri, 28 Jul 2023 15:54:53 +0000 (+0200) Subject: selinux: use identical iterator type in hashtab_duplicate() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c17c55c2d1ab19db289b566bba98b53e35e5e261;p=users%2Fwilly%2Fxarray.git selinux: use identical iterator type in hashtab_duplicate() Use the identical type u32 for the loop iterator. Signed-off-by: Christian Göttsche [PM: remove extra whitespace in subject] Signed-off-by: Paul Moore --- diff --git a/security/selinux/ss/hashtab.c b/security/selinux/ss/hashtab.c index e3747b5dd3e7e..ac5cdddfbf783 100644 --- a/security/selinux/ss/hashtab.c +++ b/security/selinux/ss/hashtab.c @@ -138,7 +138,8 @@ int hashtab_duplicate(struct hashtab *new, struct hashtab *orig, void *args) { struct hashtab_node *cur, *tmp, *tail; - int i, rc; + u32 i; + int rc; memset(new, 0, sizeof(*new));