From: H Hartley Sweeten Date: Thu, 3 May 2012 00:02:07 +0000 (-0700) Subject: w1: w1_ds2408.c: quite sparse noise about using plaing integer as NULL pointer X-Git-Tag: v3.5-rc1~147^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ae68e7345b0d5d49e1c2c7583d15a3c177f8a2f;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/slaves/w1_ds2408.c b/drivers/w1/slaves/w1_ds2408.c index 7c8cdb8..8e813ee 100644 --- a/drivers/w1/slaves/w1_ds2408.c +++ b/drivers/w1/slaves/w1_ds2408.c @@ -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 = {