media-session: bluez-autoswitch: simplify logic
When `val` was used, it was always a true-ish since the address of an array on the stack was assigned to it. Remove this variable altogether, and use `name` directly. Only use `name` when it is valid - when `key && value`.
Loading
Please register or sign in to comment