]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
dlm: Add spaces for better code readability
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 06:22:35 +0000 (08:22 +0200)
committerDavid Teigland <teigland@redhat.com>
Mon, 7 Aug 2017 16:23:09 +0000 (11:23 -0500)
The script "checkpatch.pl" pointed information out like the following.

CHECK: spaces preferred around that '+' (ctx:VxV)

Thus fix the affected source code places.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/debug_fs.c

index 464218c6b502c16c80e573a67643e5e41e656792..551e0f8dbe0db8ecf85c84cc0ae1ab7881ab0591 100644 (file)
@@ -741,7 +741,7 @@ void dlm_delete_debug_file(struct dlm_ls *ls)
 
 int dlm_create_debug_file(struct dlm_ls *ls)
 {
-       char name[DLM_LOCKSPACE_LEN+8];
+       char name[DLM_LOCKSPACE_LEN + 8];
 
        /* format 1 */
 
@@ -756,7 +756,7 @@ int dlm_create_debug_file(struct dlm_ls *ls)
        /* format 2 */
 
        memset(name, 0, sizeof(name));
-       snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_locks", ls->ls_name);
+       snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name);
 
        ls->ls_debug_locks_dentry = debugfs_create_file(name,
                                                        S_IFREG | S_IRUGO,
@@ -769,7 +769,7 @@ int dlm_create_debug_file(struct dlm_ls *ls)
        /* format 3 */
 
        memset(name, 0, sizeof(name));
-       snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_all", ls->ls_name);
+       snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name);
 
        ls->ls_debug_all_dentry = debugfs_create_file(name,
                                                      S_IFREG | S_IRUGO,
@@ -782,7 +782,7 @@ int dlm_create_debug_file(struct dlm_ls *ls)
        /* format 4 */
 
        memset(name, 0, sizeof(name));
-       snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_toss", ls->ls_name);
+       snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name);
 
        ls->ls_debug_toss_dentry = debugfs_create_file(name,
                                                       S_IFREG | S_IRUGO,
@@ -793,7 +793,7 @@ int dlm_create_debug_file(struct dlm_ls *ls)
                goto fail;
 
        memset(name, 0, sizeof(name));
-       snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_waiters", ls->ls_name);
+       snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name);
 
        ls->ls_debug_waiters_dentry = debugfs_create_file(name,
                                                          S_IFREG | S_IRUGO,