USB: gadget: rndis: fix compilation warning
[firefly-linux-kernel-4.4.55.git] / kernel / audit.c
index a6c632757e57a3223c8daebf1219d8d94c218120..4dd7529b084515505ab0028a373efc0b78ef118d 100644 (file)
@@ -1412,7 +1412,7 @@ void audit_log_cap(struct audit_buffer *ab, char *prefix, kernel_cap_t *cap)
        audit_log_format(ab, " %s=", prefix);
        CAP_FOR_EACH_U32(i) {
                audit_log_format(ab, "%08x",
-                                cap->cap[(_KERNEL_CAPABILITY_U32S-1) - i]);
+                                cap->cap[CAP_LAST_U32 - i]);
        }
 }