diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:06:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:53:53 -0400 |
commit | 1a5c4e2a0e339a01fdfbd519ba664d8efdc8d702 (patch) | |
tree | 8b2973b172129717816b468ea473fcb010b3816e /fs/ocfs2 | |
parent | c0f35cc0be0e1d06b89d5867a6db09eda5033189 (diff) |
ocfs2: remove NULL assignments on static
Static values are automatically initialized to NULL.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/cluster/tcp.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/dlm/dlmdebug.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/dlm/dlmlock.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 6 | ||||
-rw-r--r-- | fs/ocfs2/stackglue.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/super.c | 4 | ||||
-rw-r--r-- | fs/ocfs2/uptodate.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index c6b90e670389..a68e07a9bd46 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c | |||
@@ -108,7 +108,7 @@ static struct rb_root o2net_handler_tree = RB_ROOT; | |||
108 | static struct o2net_node o2net_nodes[O2NM_MAX_NODES]; | 108 | static struct o2net_node o2net_nodes[O2NM_MAX_NODES]; |
109 | 109 | ||
110 | /* XXX someday we'll need better accounting */ | 110 | /* XXX someday we'll need better accounting */ |
111 | static struct socket *o2net_listen_sock = NULL; | 111 | static struct socket *o2net_listen_sock; |
112 | 112 | ||
113 | /* | 113 | /* |
114 | * listen work is only queued by the listening socket callbacks on the | 114 | * listen work is only queued by the listening socket callbacks on the |
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index e33cd7a3c582..18f13c2e4a10 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c | |||
@@ -338,7 +338,7 @@ void dlm_print_one_mle(struct dlm_master_list_entry *mle) | |||
338 | 338 | ||
339 | #ifdef CONFIG_DEBUG_FS | 339 | #ifdef CONFIG_DEBUG_FS |
340 | 340 | ||
341 | static struct dentry *dlm_debugfs_root = NULL; | 341 | static struct dentry *dlm_debugfs_root; |
342 | 342 | ||
343 | #define DLM_DEBUGFS_DIR "o2dlm" | 343 | #define DLM_DEBUGFS_DIR "o2dlm" |
344 | #define DLM_DEBUGFS_DLM_STATE "dlm_state" | 344 | #define DLM_DEBUGFS_DLM_STATE "dlm_state" |
diff --git a/fs/ocfs2/dlm/dlmlock.c b/fs/ocfs2/dlm/dlmlock.c index 5d32f7511f74..66c2a491f68d 100644 --- a/fs/ocfs2/dlm/dlmlock.c +++ b/fs/ocfs2/dlm/dlmlock.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #define MLOG_MASK_PREFIX ML_DLM | 52 | #define MLOG_MASK_PREFIX ML_DLM |
53 | #include "cluster/masklog.h" | 53 | #include "cluster/masklog.h" |
54 | 54 | ||
55 | static struct kmem_cache *dlm_lock_cache = NULL; | 55 | static struct kmem_cache *dlm_lock_cache; |
56 | 56 | ||
57 | static DEFINE_SPINLOCK(dlm_cookie_lock); | 57 | static DEFINE_SPINLOCK(dlm_cookie_lock); |
58 | static u64 dlm_next_cookie = 1; | 58 | static u64 dlm_next_cookie = 1; |
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index ee1f88419cb0..3087a21d32f9 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c | |||
@@ -82,9 +82,9 @@ static inline int dlm_mle_equal(struct dlm_ctxt *dlm, | |||
82 | return 1; | 82 | return 1; |
83 | } | 83 | } |
84 | 84 | ||
85 | static struct kmem_cache *dlm_lockres_cache = NULL; | 85 | static struct kmem_cache *dlm_lockres_cache; |
86 | static struct kmem_cache *dlm_lockname_cache = NULL; | 86 | static struct kmem_cache *dlm_lockname_cache; |
87 | static struct kmem_cache *dlm_mle_cache = NULL; | 87 | static struct kmem_cache *dlm_mle_cache; |
88 | 88 | ||
89 | static void dlm_mle_release(struct kref *kref); | 89 | static void dlm_mle_release(struct kref *kref); |
90 | static void dlm_init_mle(struct dlm_master_list_entry *mle, | 90 | static void dlm_init_mle(struct dlm_master_list_entry *mle, |
diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c index 83f1a665ae97..5d965e83bd43 100644 --- a/fs/ocfs2/stackglue.c +++ b/fs/ocfs2/stackglue.c | |||
@@ -709,7 +709,7 @@ static struct ctl_table ocfs2_root_table[] = { | |||
709 | { } | 709 | { } |
710 | }; | 710 | }; |
711 | 711 | ||
712 | static struct ctl_table_header *ocfs2_table_header = NULL; | 712 | static struct ctl_table_header *ocfs2_table_header; |
713 | 713 | ||
714 | 714 | ||
715 | /* | 715 | /* |
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a7cdd56f4c79..9027729e3992 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -75,7 +75,7 @@ | |||
75 | 75 | ||
76 | #include "buffer_head_io.h" | 76 | #include "buffer_head_io.h" |
77 | 77 | ||
78 | static struct kmem_cache *ocfs2_inode_cachep = NULL; | 78 | static struct kmem_cache *ocfs2_inode_cachep; |
79 | struct kmem_cache *ocfs2_dquot_cachep; | 79 | struct kmem_cache *ocfs2_dquot_cachep; |
80 | struct kmem_cache *ocfs2_qf_chunk_cachep; | 80 | struct kmem_cache *ocfs2_qf_chunk_cachep; |
81 | 81 | ||
@@ -85,7 +85,7 @@ struct kmem_cache *ocfs2_qf_chunk_cachep; | |||
85 | * workqueue and schedule on our own. */ | 85 | * workqueue and schedule on our own. */ |
86 | struct workqueue_struct *ocfs2_wq = NULL; | 86 | struct workqueue_struct *ocfs2_wq = NULL; |
87 | 87 | ||
88 | static struct dentry *ocfs2_debugfs_root = NULL; | 88 | static struct dentry *ocfs2_debugfs_root; |
89 | 89 | ||
90 | MODULE_AUTHOR("Oracle"); | 90 | MODULE_AUTHOR("Oracle"); |
91 | MODULE_LICENSE("GPL"); | 91 | MODULE_LICENSE("GPL"); |
diff --git a/fs/ocfs2/uptodate.c b/fs/ocfs2/uptodate.c index 52eaf33d346f..82e17b076ce7 100644 --- a/fs/ocfs2/uptodate.c +++ b/fs/ocfs2/uptodate.c | |||
@@ -67,7 +67,7 @@ struct ocfs2_meta_cache_item { | |||
67 | sector_t c_block; | 67 | sector_t c_block; |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct kmem_cache *ocfs2_uptodate_cachep = NULL; | 70 | static struct kmem_cache *ocfs2_uptodate_cachep; |
71 | 71 | ||
72 | u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) | 72 | u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) |
73 | { | 73 | { |