diff options
author | Andreas Hindborg <a.hindborg@kernel.org> | 2025-09-02 11:55:02 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-09-02 05:23:56 -0600 |
commit | c3a54220b54a1bda0662f0e7ab90ffabf5036d50 (patch) | |
tree | 9c7f998428b5767c7f857678e886a24e4ec15eec /drivers/fpga/fpga-bridge.c | |
parent | f4b72f1558be1e2b173b6b1f93c09dc668592a26 (diff) |
rust: block: use `NullTerminatedFormatter`
Use the new `NullTerminatedFormatter` to write the name of a `GenDisk` to
the name buffer. This new formatter automatically adds a trailing null
marker after the written characters, so we don't need to append that at the
call site any longer.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-8-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions