diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 7718a53911e6..c311ab1d6af1 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -255,7 +255,7 @@ Span<bool> ControlValue::get<Span<bool>>() const
 template<>
 int32_t ControlValue::get<int32_t>() const
 {
-	ASSERT(type_ == ControlTypeInteger32 || type_ == ControlTypeInteger64);
+	ASSERT(type_ == ControlTypeInteger32);
 
 	return integer32_;
 }
@@ -272,7 +272,7 @@ Span<int32_t> ControlValue::get<Span<int32_t>>() const
 template<>
 int64_t ControlValue::get<int64_t>() const
 {
-	ASSERT(type_ == ControlTypeInteger32 || type_ == ControlTypeInteger64);
+	ASSERT(type_ == ControlTypeInteger64);
 
 	return integer64_;
 }
