diff options
author | Andreas Schwab <schwab@suse.de> | 2006-06-06 00:21:57 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-18 00:29:43 -0400 |
commit | cec6f7f39c3db7d9f6091bf2f8fc8d520f372719 (patch) | |
tree | 08142a001fa9b010056202293697c7b5aea6bae8 | |
parent | f86502bfc177f69bbabbedb78ebf710579ae0e54 (diff) |
[CONNECTOR]: Fix warning in cn_queue.c
cn_queue.c:130: warning: value computed is not used
There is no point in testing the atomic value if the result is thrown
away.
From Evgeniy:
It was created to put implicit smp barrier, but it is not needed there.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/connector/cn_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c index 9f2f00d82917..05f8ce2cfb4a 100644 --- a/drivers/connector/cn_queue.c +++ b/drivers/connector/cn_queue.c | |||
@@ -127,7 +127,7 @@ void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id) | |||
127 | 127 | ||
128 | if (found) { | 128 | if (found) { |
129 | cn_queue_free_callback(cbq); | 129 | cn_queue_free_callback(cbq); |
130 | atomic_dec_and_test(&dev->refcnt); | 130 | atomic_dec(&dev->refcnt); |
131 | } | 131 | } |
132 | } | 132 | } |
133 | 133 | ||