Skip to content

Commit 4ae68e7

Browse files
H Hartley Sweetengregkh
authored andcommitted
w1: w1_ds2408.c: quite sparse noise about using plaing integer as NULL pointer
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 <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0e1507c commit 4ae68e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/w1/slaves/w1_ds2408.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ static struct bin_attribute w1_f29_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
332332
},
333333
.size = 1,
334334
.read = w1_f29_read_cond_search_mask,
335-
.write = 0,
336335
},
337336
{
338337
.attr = {
@@ -341,7 +340,6 @@ static struct bin_attribute w1_f29_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
341340
},
342341
.size = 1,
343342
.read = w1_f29_read_cond_search_polarity,
344-
.write = 0,
345343
},
346344
{
347345
.attr = {

0 commit comments

Comments
 (0)