2022-02-01 17:54:29 +00:00
|
|
|
From 7ae399e41e20b7684f475d67311f4ed02039374a Mon Sep 17 00:00:00 2001
|
2021-12-07 17:38:55 +00:00
|
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
|
Date: Sat, 30 Oct 2021 08:34:28 +0100
|
|
|
|
Subject: [PATCH] vddk: Remove some whitespace from a couple of functions
|
|
|
|
|
|
|
|
(cherry picked from commit 974dce2c2ef84fc096ee319f340054234a29df91)
|
|
|
|
---
|
|
|
|
plugins/vddk/vddk.c | 9 ++-------
|
|
|
|
1 file changed, 2 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
|
|
|
|
index 271b5ee0..184f1a9c 100644
|
|
|
|
--- a/plugins/vddk/vddk.c
|
|
|
|
+++ b/plugins/vddk/vddk.c
|
|
|
|
@@ -792,9 +792,7 @@ static int
|
|
|
|
vddk_flush (void *handle, uint32_t flags)
|
|
|
|
{
|
|
|
|
struct vddk_handle *h = handle;
|
|
|
|
- struct command flush_cmd = {
|
|
|
|
- .type = FLUSH,
|
|
|
|
- };
|
|
|
|
+ struct command flush_cmd = { .type = FLUSH };
|
|
|
|
|
|
|
|
return send_command_and_wait (h, &flush_cmd);
|
|
|
|
}
|
|
|
|
@@ -804,10 +802,7 @@ vddk_can_extents (void *handle)
|
|
|
|
{
|
|
|
|
struct vddk_handle *h = handle;
|
|
|
|
int ret;
|
|
|
|
- struct command can_extents_cmd = {
|
|
|
|
- .type = CAN_EXTENTS,
|
|
|
|
- .ptr = &ret,
|
|
|
|
- };
|
|
|
|
+ struct command can_extents_cmd = { .type = CAN_EXTENTS, .ptr = &ret };
|
|
|
|
|
|
|
|
if (send_command_and_wait (h, &can_extents_cmd) == -1)
|
|
|
|
return -1;
|
|
|
|
--
|
|
|
|
2.31.1
|
|
|
|
|