[PATCH BlueZ] AVRCP: Remove unneeded check for set_volume callback

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

 



---

Luiz, feel free to put this in your patchset if you prefer so it doesn't
conflict with your patches.

 audio/avrcp.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/audio/avrcp.c b/audio/avrcp.c
index cb6906d..7eda6e8 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1150,8 +1150,7 @@ static gboolean avrcp_handle_volume_changed(struct avctp *session,
 	if (code == AVC_CTYPE_REJECTED || code == AVC_CTYPE_NOT_IMPLEMENTED)
 		return FALSE;
 
-	if (player->cb->set_volume != NULL)
-		player->cb->set_volume(abs_volume, player->dev, player->user_data);
+	player->cb->set_volume(abs_volume, player->dev, player->user_data);
 
 	return TRUE;
 }
-- 
1.7.10.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux