All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <535C128D.3070604@yahoo.fr>

diff --git a/a/1.txt b/N1/1.txt
index 4c73fa4..712912b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -15,10 +15,10 @@
 > >
 > [snip]
 > >  	mutex_lock(&item->mutex);
-> > -	BUG_ON(item->refcount = 0);
-> > +	BUG_ON(atomic_read(&item->refcount) = 0);
+> > -	BUG_ON(item->refcount == 0);
+> > +	BUG_ON(atomic_read(&item->refcount) == 0);
 > >  	BUG_ON(ref->object != item->object);
-> > -	if (--item->refcount = 0) {
+> > -	if (--item->refcount == 0) {
 > > +	if (atomic_dec_and_test(&item->refcount)) {
 > >  		ref->release(ref);
 > >  		item->object = NULL;
diff --git a/a/content_digest b/N1/content_digest
index 4b6bbee..4efff4a 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -2,7 +2,7 @@
  "ref\020140426170305.GA17562@mguzik.redhat.com\0"
  "From\0Lionel Debroux <lionel_debroux@yahoo.fr>\0"
  "Subject\0Re: [PATCH] drm: make variable named \"refcount\" atomic, like most refcounts in the kernel.\0"
- "Date\0Sat, 26 Apr 2014 20:09:49 +0000\0"
+ "Date\0Sat, 26 Apr 2014 22:09:49 +0200\0"
  "To\0Mateusz Guzik <mguzik@redhat.com>\0"
  "Cc\0linux-kernel@vger.kernel.org"
  " kernel-janitors@vger.kernel.org\0"
@@ -25,10 +25,10 @@
  "> >\n"
  "> [snip]\n"
  "> >  \tmutex_lock(&item->mutex);\n"
- "> > -\tBUG_ON(item->refcount = 0);\n"
- "> > +\tBUG_ON(atomic_read(&item->refcount) = 0);\n"
+ "> > -\tBUG_ON(item->refcount == 0);\n"
+ "> > +\tBUG_ON(atomic_read(&item->refcount) == 0);\n"
  "> >  \tBUG_ON(ref->object != item->object);\n"
- "> > -\tif (--item->refcount = 0) {\n"
+ "> > -\tif (--item->refcount == 0) {\n"
  "> > +\tif (atomic_dec_and_test(&item->refcount)) {\n"
  "> >  \t\tref->release(ref);\n"
  "> >  \t\titem->object = NULL;\n"
@@ -59,4 +59,4 @@
  "Regards,\n"
  Lionel.
 
-be13c4a8048815cf6e46c304829d2a2f04f3ae257fda5f57932bf34283b60a93
+f3fa34201d8442baa4e1f1a1306a1c410373bd14ae407cc8de0d335123af5ae8

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.