Просмотр исходного кода

icmap: fix mapping return codes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
Fabio M. Di Nitto 13 лет назад
Родитель
Сommit
8a2e936381
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      exec/icmap.c

+ 2 - 2
exec/icmap.c

@@ -142,7 +142,7 @@ static int32_t icmap_tt_to_qbtt(int32_t track_type)
 		res |= QB_MAP_NOTIFY_RECURSIVE;
 	}
 
-	return (track_type);
+	return (res);
 }
 
 static int32_t icmap_qbtt_to_tt(int32_t track_type)
@@ -165,7 +165,7 @@ static int32_t icmap_qbtt_to_tt(int32_t track_type)
 		res |= ICMAP_TRACK_PREFIX;
 	}
 
-	return (track_type);
+	return (res);
 }
 
 static void icmap_map_free_cb(uint32_t event,