* [PATCH 1/5] CONNECTOR: add a missing break in cn_netlink_send()
@ 2008-01-04 5:52 Li Zefan
0 siblings, 0 replies; only message in thread
From: Li Zefan @ 2008-01-04 5:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: Evgeniy Polyakov, LKML
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>
---
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 6883fcb..6e70963 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)
if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
found = 1;
group = __cbq->group;
+ break;
}
}
spin_unlock_bh(&dev->cbdev->queue_lock);
--
1.5.3.rc7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-04 5:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 5:52 [PATCH 1/5] CONNECTOR: add a missing break in cn_netlink_send() Li Zefan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.