All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <488767A7.70903@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index 5d53905..bd8e64a 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -129,7 +129,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	char *tx;
 +
 +	tx = kmalloc(2, GFP_KERNEL);
-+	if (tx == NULL) {
++	if (tx = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -166,13 +166,13 @@ include/linux/industrialio/sca3000.h         |   22
 +	char *tx;
 +
 +	*rx_p = kmalloc(len + 1, GFP_KERNEL);
-+	if (*rx_p == NULL) {
++	if (*rx_p = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
 +
 +	tx = kzalloc(len + 1, GFP_KERNEL);
-+	if (tx == NULL) {
++	if (tx = NULL) {
 +		ret = -ENOMEM;
 +		goto error_free_rx;
 +	}
@@ -241,7 +241,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	char *tx;
 +
 +	tx = kmalloc(6, GFP_KERNEL);
-+	if (tx == NULL) {
++	if (tx = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -660,9 +660,9 @@ include/linux/industrialio/sca3000.h         |   22
 +		goto error_free_lock;
 +	/* clear the bits */
 +	rx[1] &= ~0x03;
-+	if (val == base_freq/2) {
++	if (val = base_freq/2) {
 +		rx[1] |= SCA3000_OUT_CTRL_BUF_DIV_2;
-+	} else if (val == base_freq/4) {
++	} else if (val = base_freq/4) {
 +		rx[1] |= SCA3000_OUT_CTRL_BUF_DIV_4;
 +	} else if (val != base_freq) {
 +		ret = -EINVAL;
@@ -1217,7 +1217,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	/*CARE HERE as need to know what mode to switch
 +	   to - at the moment assuming back to normal */
 +	else if (!(st->mo_det_use_count)
-+		&& ((rx[1]&protect_mask) == SCA3000_MEAS_MODE_MOT_DET))
++		&& ((rx[1]&protect_mask) = SCA3000_MEAS_MODE_MOT_DET))
 +		ret = sca3000_write_reg(dev, SCA3000_REG_ADDR_MODE,
 +					(rx[1]&(~protect_mask)));
 +
@@ -1322,7 +1322,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	int num_read;
 +	int bytes_per_sample = 1;
 +
-+	if (st->bps == 11)
++	if (st->bps = 11)
 +		bytes_per_sample = 2;
 +	/* Check how much data is available!*/
 +	ret = sca3000_read_data(st->indio_dev->dev,
@@ -1448,7 +1448,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	struct sca3000_state *st;
 +
 +	st = kzalloc(sizeof(struct sca3000_state), GFP_KERNEL);
-+	if (st == NULL) {
++	if (st = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -1456,7 +1456,7 @@ include/linux/industrialio/sca3000.h         |   22
 +	st->info = &sca3000_spi_chip_info_tbl[pdata->variant];
 +
 +	st->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL);
-+	if (st->indio_dev == NULL) {
++	if (st->indio_dev = NULL) {
 +		ret = -ENOMEM;
 +		goto error_clear_st;
 +	}
@@ -1611,3 +1611,8 @@ include/linux/industrialio/sca3000.h         |   22
 +
 +	return val;
 +};
+
+_______________________________________________
+lm-sensors mailing list
+lm-sensors@lm-sensors.org
+http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
diff --git a/a/content_digest b/N1/content_digest
index 41ad68b..9d2a279 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\0488763AD.4050400@gmail.com\0"
  "From\0Jonathan Cameron <Jonathan.Cameron@gmail.com>\0"
- "Subject\0[Patch 4/4] VTI SCA3000 Series accelerometer driver\0"
- "Date\0Wed, 23 Jul 2008 18:17:27 +0100\0"
+ "Subject\0[lm-sensors] [Patch 4/4] VTI SCA3000 Series accelerometer driver\0"
+ "Date\0Wed, 23 Jul 2008 17:17:27 +0000\0"
  "To\0LKML <linux-kernel@vger.kernel.org>"
   spi-devel-general@lists.sourceforge.net
  " LM Sensors <lm-sensors@lm-sensors.org>\0"
@@ -146,7 +146,7 @@
  "+\tchar *tx;\n"
  "+\n"
  "+\ttx = kmalloc(2, GFP_KERNEL);\n"
- "+\tif (tx == NULL) {\n"
+ "+\tif (tx = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -183,13 +183,13 @@
  "+\tchar *tx;\n"
  "+\n"
  "+\t*rx_p = kmalloc(len + 1, GFP_KERNEL);\n"
- "+\tif (*rx_p == NULL) {\n"
+ "+\tif (*rx_p = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
  "+\n"
  "+\ttx = kzalloc(len + 1, GFP_KERNEL);\n"
- "+\tif (tx == NULL) {\n"
+ "+\tif (tx = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_free_rx;\n"
  "+\t}\n"
@@ -258,7 +258,7 @@
  "+\tchar *tx;\n"
  "+\n"
  "+\ttx = kmalloc(6, GFP_KERNEL);\n"
- "+\tif (tx == NULL) {\n"
+ "+\tif (tx = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -677,9 +677,9 @@
  "+\t\tgoto error_free_lock;\n"
  "+\t/* clear the bits */\n"
  "+\trx[1] &= ~0x03;\n"
- "+\tif (val == base_freq/2) {\n"
+ "+\tif (val = base_freq/2) {\n"
  "+\t\trx[1] |= SCA3000_OUT_CTRL_BUF_DIV_2;\n"
- "+\t} else if (val == base_freq/4) {\n"
+ "+\t} else if (val = base_freq/4) {\n"
  "+\t\trx[1] |= SCA3000_OUT_CTRL_BUF_DIV_4;\n"
  "+\t} else if (val != base_freq) {\n"
  "+\t\tret = -EINVAL;\n"
@@ -1234,7 +1234,7 @@
  "+\t/*CARE HERE as need to know what mode to switch\n"
  "+\t   to - at the moment assuming back to normal */\n"
  "+\telse if (!(st->mo_det_use_count)\n"
- "+\t\t&& ((rx[1]&protect_mask) == SCA3000_MEAS_MODE_MOT_DET))\n"
+ "+\t\t&& ((rx[1]&protect_mask) = SCA3000_MEAS_MODE_MOT_DET))\n"
  "+\t\tret = sca3000_write_reg(dev, SCA3000_REG_ADDR_MODE,\n"
  "+\t\t\t\t\t(rx[1]&(~protect_mask)));\n"
  "+\n"
@@ -1339,7 +1339,7 @@
  "+\tint num_read;\n"
  "+\tint bytes_per_sample = 1;\n"
  "+\n"
- "+\tif (st->bps == 11)\n"
+ "+\tif (st->bps = 11)\n"
  "+\t\tbytes_per_sample = 2;\n"
  "+\t/* Check how much data is available!*/\n"
  "+\tret = sca3000_read_data(st->indio_dev->dev,\n"
@@ -1465,7 +1465,7 @@
  "+\tstruct sca3000_state *st;\n"
  "+\n"
  "+\tst = kzalloc(sizeof(struct sca3000_state), GFP_KERNEL);\n"
- "+\tif (st == NULL) {\n"
+ "+\tif (st = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -1473,7 +1473,7 @@
  "+\tst->info = &sca3000_spi_chip_info_tbl[pdata->variant];\n"
  "+\n"
  "+\tst->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL);\n"
- "+\tif (st->indio_dev == NULL) {\n"
+ "+\tif (st->indio_dev = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_clear_st;\n"
  "+\t}\n"
@@ -1627,6 +1627,11 @@
  "+\tval |= (val & (1 << 12)) ? 0xE000 : 0;\n"
  "+\n"
  "+\treturn val;\n"
- +};
+ "+};\n"
+ "\n"
+ "_______________________________________________\n"
+ "lm-sensors mailing list\n"
+ "lm-sensors@lm-sensors.org\n"
+ http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
 
-4b041ecdebf5ccb077f232299005d0bd64428fbc955643ee95cd701dfe54abc2
+635f635117f5ef4f6246e690efc301c53aa19173d417c69ec78548fcfc7754a6

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.