From 221877cfee87eedb17aa8f58e9f8cfa46a870752 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 30 Oct 2008 22:46:48 +0000 Subject: [PATCH] --- yaml --- r: 118551 b: refs/heads/master c: 4a9d916717de0aab4313d43817164577255242fb h: refs/heads/master i: 118549: f037000446109f3876e3e2a1e22b2327281e3b86 118547: 19c28396a574a2ddae1165cc463c438f57a9fe93 118543: deaaab1556397306bfc67df85248748c821b6c62 v: v3 --- [refs] | 2 +- trunk/net/rfkill/rfkill.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 36163815b29f..be37d28ea12b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 964d2777438bf7687324243d38ade538d9bbfe3c +refs/heads/master: 4a9d916717de0aab4313d43817164577255242fb diff --git a/trunk/net/rfkill/rfkill.c b/trunk/net/rfkill/rfkill.c index f949a482b007..25ba3bd57e66 100644 --- a/trunk/net/rfkill/rfkill.c +++ b/trunk/net/rfkill/rfkill.c @@ -603,7 +603,7 @@ static int rfkill_check_duplicity(const struct rfkill *rfkill) } /* 0: first switch of its kind */ - return test_bit(rfkill->type, seen); + return (test_bit(rfkill->type, seen)) ? 1 : 0; } static int rfkill_add_switch(struct rfkill *rfkill)