4
0
Эх сурвалжийг харах

icmap: fix mapping return codes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
(cherry picked from commit 8a2e9363819b9beccb33781dd54bb72312718d26)
Fabio M. Di Nitto 13 жил өмнө
parent
commit
916defa016
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,