Skip to contentSkip to conversation

+ ntfs-remove-null-value-assignments.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 9, 2014 NTFS filesystem

lore
Share & tools
lore
#0 lore raw

Subject: + ntfs-remove-null-value-assignments.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 09 Apr 2014 13:34:52 -0700

The patch titled
Subject: ntfs: remove NULL value assignments
has been added to the -mm tree. Its filename is
ntfs-remove-null-value-assignments.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ntfs-remove-null-value-assignments.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ntfs-remove-null-value-assignments.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Fabian Frederick <[email protected]>
Subject: ntfs: remove NULL value assignments

Static values are automatically initialized to NULL.

---

 fs/ntfs/compress.c |    2 +-
 fs/ntfs/super.c    |    4 ++--
 fs/ntfs/sysctl.c   |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
fs/ntfs/compress.c renamed from fs/ntfs/compress.c~ntfs-remove-null-value-assignments +1 -1
diff -puN fs/ntfs/compress.c~ntfs-remove-null-value-assignments fs/ntfs/compress.c
@@ -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
fs/ntfs/super.c renamed from fs/ntfs/super.c~ntfs-remove-null-value-assignments +2 -2
diff -puN fs/ntfs/super.c~ntfs-remove-null-value-assignments fs/ntfs/super.c
@@ -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 {
fs/ntfs/sysctl.c renamed from fs/ntfs/sysctl.c~ntfs-remove-null-value-assignments +1 -1
diff -puN fs/ntfs/sysctl.c~ntfs-remove-null-value-assignments fs/ntfs/sysctl.c
@@ -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

_

Patches currently in -mm which might be from [email protected] are

origin.patch
ntfs-remove-null-value-assignments.patch
linux-next.patch
ufs-sb-mutex-merge-mutex_destroy.patch