Index: uspace/srv/net/ethip/ethip.c
===================================================================
--- uspace/srv/net/ethip/ethip.c	(revision c1694b6b243b360b5f1fbf0629b5e7d4f7f4a515)
+++ uspace/srv/net/ethip/ethip.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
@@ -108,7 +108,7 @@
 	nic->iplink.arg = nic;
 
-	rc = asprintf(&svc_name, "net/eth%u", ++link_num);
-	if (rc < 0) {
+	if (asprintf(&svc_name, "net/eth%u", ++link_num) < 0) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "Out of memory.");
+		rc = ENOMEM;
 		goto error;
 	}
