瀏覽代碼

ntfs: remove NULL value assignments

Static values are automatically initialized to NULL.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Fabian Frederick 11 年之前
父節點
當前提交
504e0e2f3d
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      fs/ntfs/compress.c
  2. 2 2
      fs/ntfs/super.c
  3. 1 1
      fs/ntfs/sysctl.c

+ 1 - 1
fs/ntfs/compress.c

@@ -58,7 +58,7 @@ typedef enum {
 /**
 /**
  * ntfs_compression_buffer - one buffer for the decompression engine
  * ntfs_compression_buffer - one buffer for the decompression engine
  */
  */
-static u8 *ntfs_compression_buffer = NULL;
+static u8 *ntfs_compression_buffer;
 
 
 /**
 /**
  * ntfs_cb_lock - spinlock which protects ntfs_compression_buffer
  * ntfs_cb_lock - spinlock which protects ntfs_compression_buffer

+ 2 - 2
fs/ntfs/super.c

@@ -50,8 +50,8 @@
 static unsigned long ntfs_nr_compression_users;
 static unsigned long ntfs_nr_compression_users;
 
 
 /* A global default upcase table and a corresponding reference count. */
 /* A global default upcase table and a corresponding reference count. */
-static ntfschar *default_upcase = NULL;
-static unsigned long ntfs_nr_upcase_users = 0;
+static ntfschar *default_upcase;
+static unsigned long ntfs_nr_upcase_users;
 
 
 /* Error constants/strings used in inode.c::ntfs_show_options(). */
 /* Error constants/strings used in inode.c::ntfs_show_options(). */
 typedef enum {
 typedef enum {

+ 1 - 1
fs/ntfs/sysctl.c

@@ -56,7 +56,7 @@ static ctl_table sysctls_root[] = {
 };
 };
 
 
 /* Storage for the sysctls header. */
 /* Storage for the sysctls header. */
-static struct ctl_table_header *sysctls_root_table = NULL;
+static struct ctl_table_header *sysctls_root_table;
 
 
 /**
 /**
  * ntfs_sysctl - add or remove the debug sysctl
  * ntfs_sysctl - add or remove the debug sysctl