summaryrefslogtreecommitdiff
path: root/drivers/android/binder/range_alloc/array.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-05-28 21:04:24 +0300
committerDanilo Krummrich <dakr@kernel.org>2026-05-28 22:48:11 +0300
commite2b773fb7b0735aa159491189651d64ab942e229 (patch)
treed72e72d3e6a371cf79df3184ec1881f10f35eb71 /drivers/android/binder/range_alloc/array.rs
parent2cf1840b0fa7637b6731fd554529f8d57ea34c04 (diff)
parentbed29492d413349e5b13f21936655064cdb63c91 (diff)
downloadlinux-e2b773fb7b0735aa159491189651d64ab942e229.tar.xz
Merge remote-tracking branch 'drm/drm-next' into drm-rust-next
Backmerge to pull in commit 838d852da850 ("rust: allow `clippy::collapsible_match` globally"), in order to get rid of spurious warnings messing with developer tooling. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/android/binder/range_alloc/array.rs')
-rw-r--r--drivers/android/binder/range_alloc/array.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/android/binder/range_alloc/array.rs b/drivers/android/binder/range_alloc/array.rs
index ada1d1b4302e..081d19b09d4b 100644
--- a/drivers/android/binder/range_alloc/array.rs
+++ b/drivers/android/binder/range_alloc/array.rs
@@ -204,7 +204,6 @@ impl<T> ArrayRangeAllocator<T> {
// caller will mark them as unused, which means that they can be freed if the system comes
// under memory pressure.
let mut freed_range = FreedRange::interior_pages(offset, size);
- #[expect(clippy::collapsible_if)] // reads better like this
if offset % PAGE_SIZE != 0 {
if i == 0 || self.ranges[i - 1].endpoint() <= (offset & PAGE_MASK) {
freed_range.start_page_idx -= 1;