diff --git a/include/ublksrv_priv.h b/include/ublksrv_priv.h index 7e5987d9..1d24f4c8 100644 --- a/include/ublksrv_priv.h +++ b/include/ublksrv_priv.h @@ -81,10 +81,8 @@ static inline void *ublksrv_get_sqe_cmd(struct io_uring_sqe *sqe) static inline void ublksrv_set_sqe_cmd_op(struct io_uring_sqe *sqe, __u32 cmd_op) { - __u32 *addr = (__u32 *)&sqe->off; - - addr[0] = cmd_op; - addr[1] = 0; + sqe->cmd_op = cmd_op; + sqe->__pad1 = 0; } #ifdef DEBUG