mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-18 15:48:59 +00:00
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>
This commit is contained in:
parent
c0f35cc0be
commit
1a5c4e2a0e
@ -108,7 +108,7 @@ static struct rb_root o2net_handler_tree = RB_ROOT;
|
|||||||
static struct o2net_node o2net_nodes[O2NM_MAX_NODES];
|
static struct o2net_node o2net_nodes[O2NM_MAX_NODES];
|
||||||
|
|
||||||
/* XXX someday we'll need better accounting */
|
/* XXX someday we'll need better accounting */
|
||||||
static struct socket *o2net_listen_sock = NULL;
|
static struct socket *o2net_listen_sock;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* listen work is only queued by the listening socket callbacks on the
|
* listen work is only queued by the listening socket callbacks on the
|
||||||
|
@ -338,7 +338,7 @@ void dlm_print_one_mle(struct dlm_master_list_entry *mle)
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
|
|
||||||
static struct dentry *dlm_debugfs_root = NULL;
|
static struct dentry *dlm_debugfs_root;
|
||||||
|
|
||||||
#define DLM_DEBUGFS_DIR "o2dlm"
|
#define DLM_DEBUGFS_DIR "o2dlm"
|
||||||
#define DLM_DEBUGFS_DLM_STATE "dlm_state"
|
#define DLM_DEBUGFS_DLM_STATE "dlm_state"
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#define MLOG_MASK_PREFIX ML_DLM
|
#define MLOG_MASK_PREFIX ML_DLM
|
||||||
#include "cluster/masklog.h"
|
#include "cluster/masklog.h"
|
||||||
|
|
||||||
static struct kmem_cache *dlm_lock_cache = NULL;
|
static struct kmem_cache *dlm_lock_cache;
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(dlm_cookie_lock);
|
static DEFINE_SPINLOCK(dlm_cookie_lock);
|
||||||
static u64 dlm_next_cookie = 1;
|
static u64 dlm_next_cookie = 1;
|
||||||
|
@ -82,9 +82,9 @@ static inline int dlm_mle_equal(struct dlm_ctxt *dlm,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct kmem_cache *dlm_lockres_cache = NULL;
|
static struct kmem_cache *dlm_lockres_cache;
|
||||||
static struct kmem_cache *dlm_lockname_cache = NULL;
|
static struct kmem_cache *dlm_lockname_cache;
|
||||||
static struct kmem_cache *dlm_mle_cache = NULL;
|
static struct kmem_cache *dlm_mle_cache;
|
||||||
|
|
||||||
static void dlm_mle_release(struct kref *kref);
|
static void dlm_mle_release(struct kref *kref);
|
||||||
static void dlm_init_mle(struct dlm_master_list_entry *mle,
|
static void dlm_init_mle(struct dlm_master_list_entry *mle,
|
||||||
|
@ -709,7 +709,7 @@ static struct ctl_table ocfs2_root_table[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ctl_table_header *ocfs2_table_header = NULL;
|
static struct ctl_table_header *ocfs2_table_header;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
#include "buffer_head_io.h"
|
#include "buffer_head_io.h"
|
||||||
|
|
||||||
static struct kmem_cache *ocfs2_inode_cachep = NULL;
|
static struct kmem_cache *ocfs2_inode_cachep;
|
||||||
struct kmem_cache *ocfs2_dquot_cachep;
|
struct kmem_cache *ocfs2_dquot_cachep;
|
||||||
struct kmem_cache *ocfs2_qf_chunk_cachep;
|
struct kmem_cache *ocfs2_qf_chunk_cachep;
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ struct kmem_cache *ocfs2_qf_chunk_cachep;
|
|||||||
* workqueue and schedule on our own. */
|
* workqueue and schedule on our own. */
|
||||||
struct workqueue_struct *ocfs2_wq = NULL;
|
struct workqueue_struct *ocfs2_wq = NULL;
|
||||||
|
|
||||||
static struct dentry *ocfs2_debugfs_root = NULL;
|
static struct dentry *ocfs2_debugfs_root;
|
||||||
|
|
||||||
MODULE_AUTHOR("Oracle");
|
MODULE_AUTHOR("Oracle");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
@ -67,7 +67,7 @@ struct ocfs2_meta_cache_item {
|
|||||||
sector_t c_block;
|
sector_t c_block;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct kmem_cache *ocfs2_uptodate_cachep = NULL;
|
static struct kmem_cache *ocfs2_uptodate_cachep;
|
||||||
|
|
||||||
u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci)
|
u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user