All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] NTFS: Remove NULL value assignments
@ 2014-04-09 17:01 Fabian Frederick
  2014-04-09 19:53 ` Anton Altaparmakov
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-04-09 17:01 UTC (permalink / raw
  To: linux-kernel; +Cc: akpm, Anton

Static values are automatically initialized to NULL.

Acked-by: Anton Altaparmakov <anton@tuxera.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/ntfs/compress.c | 2 +-
 fs/ntfs/super.c    | 4 ++--
 fs/ntfs/sysctl.c   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/ntfs/compress.c b/fs/ntfs/compress.c
index ee4144c..f82498c 100644
--- a/fs/ntfs/compress.c
+++ b/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
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index 9de2491..6c3296e 100644
--- a/fs/ntfs/super.c
+++ b/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 {
diff --git a/fs/ntfs/sysctl.c b/fs/ntfs/sysctl.c
index 79a8918..1927170 100644
--- a/fs/ntfs/sysctl.c
+++ b/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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] NTFS: Remove NULL value assignments
  2014-04-09 17:01 [PATCH v2] NTFS: Remove NULL value assignments Fabian Frederick
@ 2014-04-09 19:53 ` Anton Altaparmakov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Altaparmakov @ 2014-04-09 19:53 UTC (permalink / raw
  To: akpm; +Cc: linux-kernel, Fabian Frederick

Hi Andrew,

Please could you merge this via your patch series?  Thanks a lot in advance!

Best regards,

	Anton

On 9 Apr 2014, at 18:01, Fabian Frederick <fabf@skynet.be> wrote:

> Static values are automatically initialized to NULL.
> 
> Acked-by: Anton Altaparmakov <anton@tuxera.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Anton Altaparmakov <anton@tuxera.com>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> fs/ntfs/compress.c | 2 +-
> fs/ntfs/super.c    | 4 ++--
> fs/ntfs/sysctl.c   | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/fs/ntfs/compress.c b/fs/ntfs/compress.c
> index ee4144c..f82498c 100644
> --- a/fs/ntfs/compress.c
> +++ b/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
> diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
> index 9de2491..6c3296e 100644
> --- a/fs/ntfs/super.c
> +++ b/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 {
> diff --git a/fs/ntfs/sysctl.c b/fs/ntfs/sysctl.c
> index 79a8918..1927170 100644
> --- a/fs/ntfs/sysctl.c
> +++ b/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

-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge
J.J. Thomson Avenue, Cambridge, CB3 0RB, UK


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-09 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 17:01 [PATCH v2] NTFS: Remove NULL value assignments Fabian Frederick
2014-04-09 19:53 ` Anton Altaparmakov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.