summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2013-03-29 17:17:14 +0200
committerTanu Kaskinen <tanuk@iki.fi>2013-03-29 17:17:14 +0200
commit57d859d3873f8f6bded1a64d2f49b9e072dc992d (patch)
tree5b7b9d72f8fe1cc1ecb701cfa407661f33c825ab
parentbb080ab229660d03ebfa27adb501ac45a7a794be (diff)
alsa: Don't use pa_strna() for port names
The name variable is never NULL, so there's no point in using pa_strna().
-rw-r--r--src/modules/alsa/alsa-ucm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c
index d8ff6217..3b55e822 100644
--- a/src/modules/alsa/alsa-ucm.c
+++ b/src/modules/alsa/alsa-ucm.c
@@ -691,7 +691,7 @@ static void ucm_add_port_combination(
pa_device_port_new_data port_data;
pa_device_port_new_data_init(&port_data);
- pa_device_port_new_data_set_name(&port_data, pa_strna(name));
+ pa_device_port_new_data_set_name(&port_data, name);
pa_device_port_new_data_set_description(&port_data, desc);
pa_device_port_new_data_set_direction(&port_data, is_sink ? PA_DIRECTION_OUTPUT : PA_DIRECTION_INPUT);