Skip to content

Commit cec6f7f

Browse files
andreas-schwabDavid S. Miller
authored andcommitted
[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>
1 parent f86502b commit cec6f7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/connector/cn_queue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id)
127127

128128
if (found) {
129129
cn_queue_free_callback(cbq);
130-
atomic_dec_and_test(&dev->refcnt);
130+
atomic_dec(&dev->refcnt);
131131
}
132132
}
133133

0 commit comments

Comments
 (0)