Thread (2 messages) 2 messages, 2 authors, 2012-05-25

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

STALE5246d

From: Lucas De Marchi <hidden>
Date: 2012-05-24 17:26:25
Subsystem: the rest · Maintainer: Linus Torvalds

---

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help