]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ntfs: remove NULL value assignments
authorFabian Frederick <fabf@skynet.be>
Sat, 17 May 2014 13:17:25 +0000 (23:17 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:17:25 +0000 (23:17 +1000)
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>
fs/ntfs/compress.c
fs/ntfs/super.c
fs/ntfs/sysctl.c

index ee4144ce5d7cab3ac400a0fe39f0120e3df6d15b..f82498c35e78a08a0758767be54f5d28854d7d8d 100644 (file)
@@ -58,7 +58,7 @@ typedef enum {
 /**
  * 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
index 9de2491f29262ddf8c34a7a1f4d0e4f89c94f66d..6c3296e546c31a0c39fe420db338fb12cd18423c 100644 (file)
@@ -50,8 +50,8 @@
 static unsigned long ntfs_nr_compression_users;
 
 /* 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(). */
 typedef enum {
index 79a89184cb5e0592ef5b12525bffa591307a6187..1927170a35cec81c2dea722a4cad957a0b4784cb 100644 (file)
@@ -56,7 +56,7 @@ static ctl_table sysctls_root[] = {
 };
 
 /* 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