dm: avoid spaces before function arguments or in favour of tabs
[linux-block.git] / drivers / md / dm-snap-transient.c
index 0e0ae4c36b37485ddf8a706914026281703aa6c2..46dee495e7be7edc9b612df128bfb263089b3830 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (C) 2001-2002 Sistina Software (UK) Limited.
  * Copyright (C) 2006-2008 Red Hat GmbH
 
 #define DM_MSG_PREFIX "transient snapshot"
 
-/*-----------------------------------------------------------------
+/*
+ *---------------------------------------------------------------
  * Implementation of the store for non-persistent snapshots.
- *---------------------------------------------------------------*/
+ *---------------------------------------------------------------
+ */
 struct transient_c {
        sector_t next_free;
 };
@@ -53,7 +56,7 @@ static int transient_prepare_exception(struct dm_exception_store *store,
 
 static void transient_commit_exception(struct dm_exception_store *store,
                                       struct dm_exception *e, int valid,
-                                      void (*callback) (void *, int success),
+                                      void (*callback)(void *, int success),
                                       void *callback_context)
 {
        /* Just succeed */
@@ -84,11 +87,11 @@ static int transient_ctr(struct dm_exception_store *store, char *options)
        return 0;
 }
 
-static unsigned transient_status(struct dm_exception_store *store,
+static unsigned int transient_status(struct dm_exception_store *store,
                                 status_type_t status, char *result,
-                                unsigned maxlen)
+                                unsigned int maxlen)
 {
-       unsigned sz = 0;
+       unsigned int sz = 0;
 
        switch (status) {
        case STATUSTYPE_INFO: