zhenwei pi 6fd763d155 virtio-crypto: change code style
Use temporary variable to make code easy to read and maintain.
	/* Pad cipher's parameters */
        vcrypto->ctrl.u.sym_create_session.op_type =
                cpu_to_le32(VIRTIO_CRYPTO_SYM_OP_CIPHER);
        vcrypto->ctrl.u.sym_create_session.u.cipher.para.algo =
                vcrypto->ctrl.header.algo;
        vcrypto->ctrl.u.sym_create_session.u.cipher.para.keylen =
                cpu_to_le32(keylen);
        vcrypto->ctrl.u.sym_create_session.u.cipher.para.op =
                cpu_to_le32(op);
-->
	sym_create_session = &ctrl->u.sym_create_session;
	sym_create_session->op_type = cpu_to_le32(VIRTIO_CRYPTO_SYM_OP_CIPHER);
	sym_create_session->u.cipher.para.algo = ctrl->header.algo;
	sym_create_session->u.cipher.para.keylen = cpu_to_le32(keylen);
	sym_create_session->u.cipher.para.op = cpu_to_le32(op);

The new style shows more obviously:
- the variable we want to operate.
- an assignment statement in a single line.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20220506131627.180784-2-pizhenwei@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-05-31 12:45:08 -04:00
..
2022-05-23 14:14:50 -07:00
2022-05-27 21:24:19 -07:00
2022-05-26 10:32:47 -07:00
2022-05-15 18:31:28 -06:00
2022-05-29 11:38:27 -07:00
2022-05-26 10:50:30 -07:00
2022-05-31 12:45:08 -04:00
2022-05-29 11:38:27 -07:00
2022-05-25 16:18:27 -07:00
2022-05-28 11:39:01 -07:00
2022-05-25 16:18:27 -07:00
2022-05-24 16:19:30 -07:00
2022-05-26 21:08:40 -07:00
2022-05-25 19:18:36 -07:00
2022-05-26 14:51:38 -07:00
2022-05-27 15:49:30 -07:00
2022-05-25 12:22:58 -07:00
2022-05-28 11:27:17 -07:00
2022-05-30 10:56:18 -07:00
2022-05-24 15:13:30 -07:00
2022-05-26 10:50:30 -07:00
2022-05-27 21:24:19 -07:00
2022-05-26 21:08:40 -07:00
2022-05-25 16:18:27 -07:00
2022-05-25 15:02:26 +02:00
2022-05-28 11:39:01 -07:00
2022-05-23 21:06:11 -07:00
2022-05-30 11:01:50 -07:00
2022-05-24 11:39:54 -07:00
2022-05-09 23:09:10 +02:00
2022-05-23 20:56:17 -07:00
2022-05-27 15:49:30 -07:00
2022-05-28 11:39:01 -07:00
2022-05-11 08:29:11 +03:00
2022-05-25 16:55:16 -07:00
2022-05-25 19:09:48 -07:00
2022-05-26 10:32:47 -07:00
2022-05-30 11:30:16 -07:00
2022-05-31 12:45:08 -04:00
2022-05-25 13:56:57 -07:00
2022-05-25 19:18:36 -07:00