]> git.karo-electronics.de Git - linux-beck.git/commitdiff
w1: w1_ds2408.c: quite sparse noise about using plaing integer as NULL pointer
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 3 May 2012 00:02:07 +0000 (17:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:25:30 +0000 (16:25 -0700)
NULL not 0 should be used with pointers. Just remove the offending
lines since they will default to NULL anyway.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2408.c

index 7c8cdb8aed26048895465b72c9df1bdc8fccd887..8e813eed0f0ae8167304dae1c62faf974498dbcc 100644 (file)
@@ -332,7 +332,6 @@ static struct bin_attribute w1_f29_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
                },
                .size = 1,
                .read = w1_f29_read_cond_search_mask,
-               .write = 0,
        },
        {
                .attr = {
@@ -341,7 +340,6 @@ static struct bin_attribute w1_f29_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
                },
                .size = 1,
                .read = w1_f29_read_cond_search_polarity,
-               .write = 0,
        },
        {
                .attr = {