From 57d859d3873f8f6bded1a64d2f49b9e072dc992d Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Fri, 29 Mar 2013 17:17:14 +0200 Subject: alsa: Don't use pa_strna() for port names The name variable is never NULL, so there's no point in using pa_strna(). --- src/modules/alsa/alsa-ucm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3