* [PATCH] drbd: fix pointer cast spacing
@ 2026-03-11 8:35 Richard Lyu
2026-03-11 16:49 ` Bart Van Assche
0 siblings, 1 reply; 2+ messages in thread
From: Richard Lyu @ 2026-03-11 8:35 UTC (permalink / raw)
To: Philipp Reisner
Cc: Jens Axboe, linux-kernel, linux-block, Richard Lyu,
Lars Ellenberg, drbd-dev
Checkpatch.pl reports the following coding style issue:
ERROR: "(foo*)" should be "(foo *)"
+ struct p_trim *t = (struct p_trim*)p;
Place '*' next to the variable in the cast expression to follow
the kernel coding style. No functional change.
Signed-off-by: Richard Lyu <richard.lyu@suse.com>
---
drivers/block/drbd/drbd_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index b8f0eddf7e87..978023e969f8 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -1681,7 +1681,7 @@ int drbd_send_dblock(struct drbd_peer_device *peer_device, struct drbd_request *
if (dp_flags & (DP_DISCARD|DP_ZEROES)) {
enum drbd_packet cmd = (dp_flags & DP_ZEROES) ? P_ZEROES : P_TRIM;
- struct p_trim *t = (struct p_trim*)p;
+ struct p_trim *t = (struct p_trim *)p;
t->size = cpu_to_be32(req->i.size);
err = __send_command(peer_device->connection, device->vnr, sock, cmd, sizeof(*t), NULL, 0);
goto out;
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-11 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 8:35 [PATCH] drbd: fix pointer cast spacing Richard Lyu
2026-03-11 16:49 ` Bart Van Assche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox