From: Li Zefan Date: Fri, 4 Jan 2008 09:54:38 +0000 (-0800) Subject: [CONNECTOR]: add a missing break in cn_netlink_send() X-Git-Tag: v2.6.25-rc1~1162^2~874 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd00eeccd92b7b4b5ca95bd988c195efb4e5ec29;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c index bf9716b755..edf1349c4e 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);