All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20050120164428.GA16342@elte.hu>

diff --git a/a/1.txt b/N1/1.txt
index 85d5e85..db46797 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -36,7 +36,7 @@ Signed-off-by: Ingo Molnar <mingo@elte.hu>
 + */
 +static inline int write_can_lock(rwlock_t *rw)
 +{
-+	return rw->lock = RW_LOCK_BIAS;
++	return rw->lock == RW_LOCK_BIAS;
 +}
  
  /*
diff --git a/a/content_digest b/N1/content_digest
index d4c81c4..93dbe5d 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -10,7 +10,7 @@
  "ref\0Pine.LNX.4.58.0501200823010.8178@ppc970.osdl.org\0"
  "From\0Ingo Molnar <mingo@elte.hu>\0"
  "Subject\0Re: [patch 1/3] spinlock fix #1, *_can_lock() primitives\0"
- "Date\0Thu, 20 Jan 2005 16:44:28 +0000\0"
+ "Date\0Thu, 20 Jan 2005 17:44:28 +0100\0"
  "To\0Linus Torvalds <torvalds@osdl.org>\0"
  "Cc\0Peter Chubb <peterc@gelato.unsw.edu.au>"
   Chris Wedgwood <cw@f00f.org>
@@ -64,10 +64,10 @@
  "+ */\n"
  "+static inline int write_can_lock(rwlock_t *rw)\n"
  "+{\n"
- "+\treturn rw->lock = RW_LOCK_BIAS;\n"
+ "+\treturn rw->lock == RW_LOCK_BIAS;\n"
  "+}\n"
  " \n"
  " /*\n"
    * On x86, we implement read-write locks as a 32-bit counter
 
-155f5377ec751a884d6effe37a2d02324ba46f7ee89ddb5874a44379a289972a
+8100e24c6b129f7ed54ac5babb8a481e1af8234c2b7a60ceaf297ececdbae9f0

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.