diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-01-04 04:54:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:00:37 -0500 |
commit | fd00eeccd92b7b4b5ca95bd988c195efb4e5ec29 (patch) | |
tree | d2cd16e16c107f9cebc8a329c37e982ed9325930 /drivers/connector/connector.c | |
parent | 74feb6e84e189707ca1324a92f7206617efbd735 (diff) |
[CONNECTOR]: add a missing break in cn_netlink_send()
Each entry in the list has a unique id, so just break out of the
loop if the matched id is found.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/connector/connector.c')
-rw-r--r-- | drivers/connector/connector.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c index bf9716b75513..edf1349c4e1f 100644 --- a/drivers/connector/connector.c +++ b/drivers/connector/connector.c | |||
@@ -88,6 +88,7 @@ int cn_netlink_send(struct cn_msg *msg, u32 __group, gfp_t gfp_mask) | |||
88 | if (cn_cb_equal(&__cbq->id.id, &msg->id)) { | 88 | if (cn_cb_equal(&__cbq->id.id, &msg->id)) { |
89 | found = 1; | 89 | found = 1; |
90 | group = __cbq->group; | 90 | group = __cbq->group; |
91 | break; | ||
91 | } | 92 | } |
92 | } | 93 | } |
93 | spin_unlock_bh(&dev->cbdev->queue_lock); | 94 | spin_unlock_bh(&dev->cbdev->queue_lock); |