]> git.ipfire.org Git - thirdparty/linux.git/commit
rust_binder: fix needless borrow in context.rs
authorShivam Kalra <shivamklr@cock.li>
Fri, 30 Jan 2026 18:28:23 +0000 (23:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Feb 2026 11:58:29 +0000 (12:58 +0100)
commit38ac9179a79d81ab1db3807ddd6c03fab29eb19b
treed558d2f56a9adcafd1b578e99d60f11ad9e0e7d6
parent9991bbc6d5e8fdfa0b1bcfeebf4637e8fd764bd8
rust_binder: fix needless borrow in context.rs

Clippy warns about a needless borrow in context.rs:

    error: this expression creates a reference which is immediately dereferenced by the compiler
       --> drivers/android/binder/context.rs:141:18
        |
    141 |             func(&proc);
        |                  ^^^^^ help: change this to: `proc`

Remove the unnecessary borrow to satisfy clippy and improve code
cleanliness. No functional change.

Signed-off-by: Shivam Kalra <shivamklr@cock.li>
Acked-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260130182842.217821-1-shivamklr@cock.li
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder/context.rs