From 340feae163c4797a6cb1247b3812c1ccdc52fa41 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Wed, 3 Jun 2009 15:03:44 +0900 Subject: Cleanup: Remove unnecessary 'err' value. Hi, CHANGELOG of v2: ================ * New patch. Thanks Ken'ichi Ohmichi Signed-off-by: Ken'ichi Ohmichi Reviewed-By: Jan Safranek Signed-off-by: Dhaval Giani --- src/daemon/cgrulesengd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c index fb757c1..1a7b321 100644 --- a/src/daemon/cgrulesengd.c +++ b/src/daemon/cgrulesengd.c @@ -421,7 +421,6 @@ int cgre_handle_msg(struct cn_msg *cn_hdr) int cgre_create_netlink_socket_process_msg() { int sk_nl; - int err; struct sockaddr_nl my_nla, kern_nla, from_nla; socklen_t from_nla_len; char buff[BUFF_SIZE]; @@ -453,8 +452,7 @@ int cgre_create_netlink_socket_process_msg() kern_nla.nl_pid = 1; kern_nla.nl_pad = 0; - err = bind(sk_nl, (struct sockaddr *)&my_nla, sizeof(my_nla)); - if (err == -1) { + if (bind(sk_nl, (struct sockaddr *)&my_nla, sizeof(my_nla)) < 0) { cgroup_dbg("binding sk_nl error"); goto close_and_exit; } -- cgit