DragonFlyBSD Kernel Audit
DF-2030 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c b/sys/dev/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
--- a/sys/dev/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
+++ b/sys/dev/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
@@ -181,13 +181,13 @@
 		 /* No DIG_FRONT is associated to DIG_BACKEND */
 		atom_dig_encoder_sel = 0;
 		break;
-	default:
-		atom_dig_encoder_sel = ATOM_TRANMSITTER_V5__DIGA_SEL;
-		break;
-	}
-
-	return 0;
-}
+	default:
+		atom_dig_encoder_sel = ATOM_TRANMSITTER_V5__DIGA_SEL;
+		break;
+	}
+
+	return atom_dig_encoder_sel;
+}
 
 static bool clock_source_id_to_atom(
 	enum clock_source_id id,