W1: w1_family, remove unused variable need_exit

Removed the w1_family structure member variable need_exit.  It was only
being set and never used.  Even if it were to be used it is a polling type
operation.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
David Fries 2008-10-15 22:04:52 -07:00 committed by Linus Torvalds
parent 347ba8a588
commit fe3cb82364
2 changed files with 1 additions and 7 deletions

View file

@ -48,7 +48,6 @@ int w1_register_family(struct w1_family *newf)
if (!ret) { if (!ret) {
atomic_set(&newf->refcnt, 0); atomic_set(&newf->refcnt, 0);
newf->need_exit = 0;
list_add_tail(&newf->family_entry, &w1_families); list_add_tail(&newf->family_entry, &w1_families);
} }
spin_unlock(&w1_flock); spin_unlock(&w1_flock);
@ -73,9 +72,6 @@ void w1_unregister_family(struct w1_family *fent)
break; break;
} }
} }
fent->need_exit = 1;
spin_unlock(&w1_flock); spin_unlock(&w1_flock);
/* deatch devices using this family code */ /* deatch devices using this family code */
@ -113,8 +109,7 @@ struct w1_family * w1_family_registered(u8 fid)
static void __w1_family_put(struct w1_family *f) static void __w1_family_put(struct w1_family *f)
{ {
if (atomic_dec_and_test(&f->refcnt)) atomic_dec(&f->refcnt);
f->need_exit = 1;
} }
void w1_family_put(struct w1_family *f) void w1_family_put(struct w1_family *f)

View file

@ -53,7 +53,6 @@ struct w1_family
struct w1_family_ops *fops; struct w1_family_ops *fops;
atomic_t refcnt; atomic_t refcnt;
u8 need_exit;
}; };
extern spinlock_t w1_flock; extern spinlock_t w1_flock;