Commit cec6f7f39c3db7d9f6091bf2f8fc8d520f372719

Authored by Andreas Schwab
Committed by David S. Miller
1 parent f86502bfc1

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/connector/cn_queue.c
... ... @@ -127,7 +127,7 @@
127 127  
128 128 if (found) {
129 129 cn_queue_free_callback(cbq);
130   - atomic_dec_and_test(&dev->refcnt);
  130 + atomic_dec(&dev->refcnt);
131 131 }
132 132 }
133 133