All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4933F3C9.1090704@cam.ac.uk>

diff --git a/a/1.txt b/N1/1.txt
index 265bbdd..5c3caef 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -209,7 +209,7 @@ index 0000000..04a8cb1
 +	int ret;
 +
 +	buf->event_minor_name = kmalloc(IIO_RING_EV_MINOR_N_LEN, GFP_KERNEL);
-+	if (buf->event_minor_name == NULL) {
++	if (buf->event_minor_name = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -248,7 +248,7 @@ index 0000000..04a8cb1
 +/* Create and register the access character device */
 +	buf->access_minor_name = kmalloc(IIO_RING_AC_MINOR_N_LEN,
 +					 GFP_KERNEL);
-+	if (buf->access_minor_name == NULL) {
++	if (buf->access_minor_name = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -370,7 +370,7 @@ index 0000000..04a8cb1
 +		return ret;
 +
 +	if (dev_info->ring_access.get_length)
-+		if (val == ra->get_length(dev_info->ring))
++		if (val = ra->get_length(dev_info->ring))
 +			return len;
 +
 +	if (ra->set_length) {
@@ -418,9 +418,9 @@ index 0000000..04a8cb1
 +	struct iio_ring_access_funcs *ra = &dev_info->ring_access;
 +
 +	mutex_lock(&dev_info->mlock);
-+	requested_state = (buf[0] == '0') ? 0 : 1;
++	requested_state = (buf[0] = '0') ? 0 : 1;
 +	current_state = !!(dev_info->currentmode & INDIO_ALL_RING_MODES);
-+	if (current_state == requested_state)
++	if (current_state = requested_state)
 +		goto done;
 +	if (requested_state) {
 +		if (dev_info->ring_preenable) {
@@ -672,10 +672,14 @@ index 6daff14..cbbce58 100644
 +	ring->length = length;
 +	ring->loopcount = 0;
 +	ring->shared_ev_pointer.ev_p = 0;
-+	ring->shared_ev_pointer.lock =
-+		__SPIN_LOCK_UNLOCKED(ring->shared_ev_pointer->loc);
++	ring->shared_ev_pointer.lock +		__SPIN_LOCK_UNLOCKED(ring->shared_ev_pointer->loc);
 +}
 +
  #else
  
  struct iio_ring_buffer {};
+
+_______________________________________________
+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 e91d5c2..402302d 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "ref\04933F291.4020001@cam.ac.uk\0"
  "From\0Jonathan Cameron <jic23@cam.ac.uk>\0"
- "Subject\0[Industrial I/O] [2/13] RFC: IIO ring buffer support (core)\0"
+ "Subject\0[lm-sensors] [Industrial I/O] [2/13] RFC: IIO ring buffer support\0"
  "Date\0Mon, 01 Dec 2008 14:25:13 +0000\0"
  "To\0Jonathan Cameron <jic23@cam.ac.uk>\0"
  "Cc\0LKML <linux-kernel@vger.kernel.org>"
@@ -223,7 +223,7 @@
  "+\tint ret;\n"
  "+\n"
  "+\tbuf->event_minor_name = kmalloc(IIO_RING_EV_MINOR_N_LEN, GFP_KERNEL);\n"
- "+\tif (buf->event_minor_name == NULL) {\n"
+ "+\tif (buf->event_minor_name = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -262,7 +262,7 @@
  "+/* Create and register the access character device */\n"
  "+\tbuf->access_minor_name = kmalloc(IIO_RING_AC_MINOR_N_LEN,\n"
  "+\t\t\t\t\t GFP_KERNEL);\n"
- "+\tif (buf->access_minor_name == NULL) {\n"
+ "+\tif (buf->access_minor_name = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -384,7 +384,7 @@
  "+\t\treturn ret;\n"
  "+\n"
  "+\tif (dev_info->ring_access.get_length)\n"
- "+\t\tif (val == ra->get_length(dev_info->ring))\n"
+ "+\t\tif (val = ra->get_length(dev_info->ring))\n"
  "+\t\t\treturn len;\n"
  "+\n"
  "+\tif (ra->set_length) {\n"
@@ -432,9 +432,9 @@
  "+\tstruct iio_ring_access_funcs *ra = &dev_info->ring_access;\n"
  "+\n"
  "+\tmutex_lock(&dev_info->mlock);\n"
- "+\trequested_state = (buf[0] == '0') ? 0 : 1;\n"
+ "+\trequested_state = (buf[0] = '0') ? 0 : 1;\n"
  "+\tcurrent_state = !!(dev_info->currentmode & INDIO_ALL_RING_MODES);\n"
- "+\tif (current_state == requested_state)\n"
+ "+\tif (current_state = requested_state)\n"
  "+\t\tgoto done;\n"
  "+\tif (requested_state) {\n"
  "+\t\tif (dev_info->ring_preenable) {\n"
@@ -686,12 +686,16 @@
  "+\tring->length = length;\n"
  "+\tring->loopcount = 0;\n"
  "+\tring->shared_ev_pointer.ev_p = 0;\n"
- "+\tring->shared_ev_pointer.lock =\n"
- "+\t\t__SPIN_LOCK_UNLOCKED(ring->shared_ev_pointer->loc);\n"
+ "+\tring->shared_ev_pointer.lock +\t\t__SPIN_LOCK_UNLOCKED(ring->shared_ev_pointer->loc);\n"
  "+}\n"
  "+\n"
  " #else\n"
  " \n"
-  struct iio_ring_buffer {};
+ " struct iio_ring_buffer {};\n"
+ "\n"
+ "_______________________________________________\n"
+ "lm-sensors mailing list\n"
+ "lm-sensors@lm-sensors.org\n"
+ http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
 
-b4996c29df5c88ebe301e32c0927d14c0d825206c93e8ff23e89d0a32c664e85
+d6e99a23c2003ce6e115e068e15ad640485745978cd49ee9b829e66b86223bcc

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.