Index: uspace/srv/bd/file_bd/file_bd.c
===================================================================
--- uspace/srv/bd/file_bd/file_bd.c	(revision 25a179efc4ecca45aa90793992b6c1c2743fd07f)
+++ uspace/srv/bd/file_bd/file_bd.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
@@ -222,5 +222,4 @@
 {
 	size_t n_rd;
-	int rc;
 
 	if (size < cnt * block_size)
@@ -238,6 +237,5 @@
 
 	clearerr(img);
-	rc = fseek(img, ba * block_size, SEEK_SET);
-	if (rc < 0) {
+	if (fseek(img, ba * block_size, SEEK_SET) < 0) {
 		fibril_mutex_unlock(&dev_lock);
 		return EIO;
@@ -264,5 +262,4 @@
 {
 	size_t n_wr;
-	int rc;
 
 	if (size < cnt * block_size)
@@ -280,6 +277,5 @@
 
 	clearerr(img);
-	rc = fseek(img, ba * block_size, SEEK_SET);
-	if (rc < 0) {
+	if (fseek(img, ba * block_size, SEEK_SET) < 0) {
 		fibril_mutex_unlock(&dev_lock);
 		return EIO;
Index: uspace/srv/bd/sata_bd/sata_bd.c
===================================================================
--- uspace/srv/bd/sata_bd/sata_bd.c	(revision 25a179efc4ecca45aa90793992b6c1c2743fd07f)
+++ uspace/srv/bd/sata_bd/sata_bd.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
@@ -251,5 +251,5 @@
 	async_set_fallback_port_handler(sata_bd_connection, NULL);
 	rc = loc_server_register(NAME);
-	if (rc < 0) {
+	if (rc != EOK) {
 		printf(NAME ": Unable to register driver: %s.\n", str_error(rc));
 		return rc;
Index: uspace/srv/bd/vbd/disk.c
===================================================================
--- uspace/srv/bd/vbd/disk.c	(revision 25a179efc4ecca45aa90793992b6c1c2743fd07f)
+++ uspace/srv/bd/vbd/disk.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
@@ -1114,6 +1114,5 @@
 	idx = part->lpart->index;
 
-	rc = asprintf(&name, "%sp%u", part->disk->svc_name, idx);
-	if (rc < 0) {
+	if (asprintf(&name, "%sp%u", part->disk->svc_name, idx) < 0) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "Out of memory.");
 		return ENOMEM;
