[PATCH] bluetooth: add a parenthesis around pa_streq()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Frederic,

I should have CC-ed you for this patch. Please review!

Thanks!

2012/7/11 Deng Zhengrong <dzrongg at gmail.com>:
> I know that pa_streq() is defined with an extra parenthesis, but everytime I
> look at it, it makes me nervous. :D
>
> So it's better to add the parenthesis here.
> ---
>  src/modules/bluetooth/module-bluetooth-policy.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c
> index 665185d..7f19447 100644
> --- a/src/modules/bluetooth/module-bluetooth-policy.c
> +++ b/src/modules/bluetooth/module-bluetooth-policy.c
> @@ -65,7 +65,7 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source,
>      if (!s)
>          return PA_HOOK_OK;
>
> -    if pa_streq(s, "a2dp_source")
> +    if (pa_streq(s, "a2dp_source"))
>          role = "music";
>      else {
>          pa_log_debug("Profile %s cannot be selected for loopback", s);
> --
> 1.7.11.1
>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux