summaryrefslogtreecommitdiff
path: root/chip/g/signed_header.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/signed_header.h')
-rw-r--r--chip/g/signed_header.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/signed_header.h b/chip/g/signed_header.h
index 3ee4085a14..6096350a54 100644
--- a/chip/g/signed_header.h
+++ b/chip/g/signed_header.h
@@ -100,7 +100,7 @@ BUILD_ASSERT(offsetof(struct SignedHeader, info_chk_) == 1020);
*
* This convention is enforced at the key generation time.
*/
-#define G_SIGNED_FOR_PROD(h) ((h)->keyid & (1 << 2))
+#define G_SIGNED_FOR_PROD(h) ((h)->keyid & BIT(2))
#endif /* __CROS_EC_SIGNED_HEADER_H */