diff mbox series

[v1,3/3] block: "(foo*)" should be "(foo *)"

Message ID d8303419-6419-0858-f16c-1685705179b5@huawei.com (mailing list archive)
State New, archived
Headers show
Series Fix some style problems in block | expand

Commit Message

chaihaoyu Dec. 17, 2020, 9:33 a.m. UTC
This patch fixes error style problems found by checkpatch.pl, please review:
"(foo*)" should be "(foo *)"

Signed-off-by: Haoyu Chai<chaihaoyu1@huawei.com>

---
 block/curl.c         |  2 +-
 block/file-win32.c   |  2 +-
 block/qcow2.c        | 10 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/block/curl.c b/block/curl.c
index 4f907c47be..d2d8d5d94b 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -251,7 +250,7 @@  static size_t curl_header_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 /* Called from curl_multi_do_locked, with s->mutex held.  */
 static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 {
-    CURLState *s = ((CURLState*)opaque);
+    CURLState *s = ((CURLState *)opaque);
     size_t realsize = size * nmemb;

     trace_curl_read_cb(realsize);
diff --git a/block/file-win32.c b/block/file-win32.c
index 2642088bd6..e3cca0fede 100644
--- a/block/file-win32.c
+++ b/block/file-win32.c
@@ -557,7 +560,7 @@  static int64_t raw_getlength(BlockDriverState *bs)
 static int64_t raw_get_allocated_file_size(BlockDriverState *bs)
 {
     typedef DWORD (WINAPI * get_compressed_t)(const char *filename,
-                                              DWORD * high);
+                                              DWORD *high);
     get_compressed_t get_compressed;
     struct _stati64 st;
     const char *filename = bs->filename;
diff --git a/block/qcow2.c b/block/qcow2.c
index b6cb4db8bb..2a06d70f2f 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -269,7 +270,7 @@  static int qcow2_read_extensions(BlockDriverState *bs, uint64_t start_offset,

         case QCOW2_EXT_MAGIC_FEATURE_TABLE:
             if (p_feature_table != NULL) {
-                void* feature_table = g_malloc0(ext.len + 2 * sizeof(Qcow2Feature));
+                void *feature_table = g_malloc0(ext.len + 2 * sizeof(Qcow2Feature));
                 ret = bdrv_pread(bs->file, offset , feature_table, ext.len);
                 if (ret < 0) {
                     error_setg_errno(errp, -ret, "ERROR: ext_feature_table: "
@@ -2748,7 +2749,7 @@  static void coroutine_fn qcow2_co_invalidate_cache(BlockDriverState *bs,
 static size_t header_ext_add(char *buf, uint32_t magic, const void *s,
     size_t len, size_t buflen)
 {
-    QCowExtension *ext_backing_fmt = (QCowExtension*) buf;
+    QCowExtension *ext_backing_fmt = (QCowExtension *) buf;
     size_t ext_len = sizeof(QCowExtension) + ((len + 7) & ~7);

     if (buflen < ext_len) {
@@ -2790,7 +2791,7 @@  int qcow2_update_header(BlockDriverState *bs)
     buf = qemu_blockalign(bs, buflen);

     /* Header structure */
-    header = (QCowHeader*) buf;
+    header = (QCowHeader *) buf;

     if (buflen < sizeof(*header)) {
         ret = -ENOSPC;
@@ -3015,7 +3016,7 @@  int qcow2_update_header(BlockDriverState *bs)
         /* Using strncpy is ok here, since buf is not NUL-terminated. */
         strncpy(buf, s->image_backing_file, buflen);

-        header->backing_file_offset = cpu_to_be64(buf - ((char*) header));
+        header->backing_file_offset = cpu_to_be64(buf - ((char *) header));
         header->backing_file_size   = cpu_to_be32(backing_file_len);
     }

@@ -3374,7 +3375,7 @@  qcow2_co_create(BlockdevCreateOptions *create_options, Error **errp)
     size_t cluster_size;
     int version;
     int refcount_order;
-    uint64_t* refcount_table;
+    uint64_t *refcount_table;
     int ret;
     uint8_t compression_type = QCOW2_COMPRESSION_TYPE_ZLIB;