Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4669257rwe; Tue, 30 Aug 2022 14:45:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7b4zBeDIZuFdNksKCujGsLnaj+uxdQnpUobVcpzZ93ybLfUWPNmDmcZ3EOCCk0l7g6DZvl X-Received: by 2002:a17:906:dc89:b0:731:67eb:b60b with SMTP id cs9-20020a170906dc8900b0073167ebb60bmr17649011ejc.614.1661895933016; Tue, 30 Aug 2022 14:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661895933; cv=none; d=google.com; s=arc-20160816; b=cpu5VnuCn4HrfhqknZXru5hpS3JNMz1R5yxkjfKKuxPiOs5+MznAWTsMgUTh9Y54u9 MWT6MyC+ofnc/9wDyB0emja6VjR/LkIQxmUQeGymtvdf2bIBDj4e/mzzVWAuf/qYXZTg qIayZqxoD+JqonKBG6xSZ5Xbd5RjRQWCxwILwYJDjJ+MprwlxeMxY2I18jnmg5gBUc6V ri8PtDcksBuyJ8M+7GTOW+lKZI5lcLbGzWSMj+aGw8gxHbhxJIjtAgMEtSRerU/cb6kQ pvM2VdavU3/wxrprDHXfeW9tRXz0g9GV/03hFINWtc6pB4ioD5DV6GL7dYeeK7/t2958 Ii3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=T3NmbLxusyZY9erq7XxjXaUg4XPa55xhL+hJTWCI1r4=; b=Z2afJMJHijSYnUpVIz37/GqkAOa99omrG3tDxUj1CUfq5oGigbNyISBV7fSbNveWpv PouA9bcFkK5Ztu0Rd4nFz24LNCKCs6Ysu953/g3YezVzWlFAUmnyh2TkYBDLABiJhRTe 7N1m36JVKQZB7Wtuj9mXV7Sqm46sHHKFpgMB4JrQKpR1O97vgxyk+omMJSrLBkifb26y /+igUoVDzr8oIlE/l1BEqiG7INPjdx8WQbRFE114FqJFMWErwWGZxrDaTNXvlRzK0p2/ DyL+3eKMMlE8atDnRReI1zLsy0AE6nkxu+xDYSWuz5UWL7Y+7/8GIj+SrsuyeR7OJEBU r4nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B2i3n7Gd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go44-20020a1709070dac00b007418e2229c8si6204803ejc.521.2022.08.30.14.44.51; Tue, 30 Aug 2022 14:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B2i3n7Gd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbiH3VmW (ORCPT + 99 others); Tue, 30 Aug 2022 17:42:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbiH3VmV (ORCPT ); Tue, 30 Aug 2022 17:42:21 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFFC580F62 for ; Tue, 30 Aug 2022 14:42:19 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id x5so9645129qtv.9 for ; Tue, 30 Aug 2022 14:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=T3NmbLxusyZY9erq7XxjXaUg4XPa55xhL+hJTWCI1r4=; b=B2i3n7GdaTrP6UOwv4lydKtJFaktCIu1zu1ZTfbzcRIjVIEuNrBCSu0pR6vgvhf/wP TdXbpC5UgdTQxib00OujFVsIMv+mMdoXm2mxg5ZBksotEigQAz3+7BAsI/TqHw9s6y4d CA/3ZImdiAgGAPKWzqeQa8KWpDPju/ASNqzxsTDiyj2gsP8Gu7HzAICaVzGU/LL+ZL3J Id/OabR81HHoosr7xK0/bHEgUakta90bA+cjd8c50O8A/Y4DyCP3NaLxKdOu+85kKi+Y mP8nGhvGIddtWPbSr2wAZ3cfIkwzO5uKBo6+AMQBLra4h1lGab5rkKIM9PK+CZh1js/3 JW4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=T3NmbLxusyZY9erq7XxjXaUg4XPa55xhL+hJTWCI1r4=; b=17AOTYBuy5zXpEU3gkLOsQkclvzjwKcc/0ZtgGiSoOKk3bMGLTQHwrMcQqYozChCvt RwCKbv0up0IilETCp5L1eqB5Z/zgRT09e4mIwfaW2C5/KjGxbjoupTxFT53Xo1pzTalK wabcHYfzSaRx6lgh1W5Mxz5HQMyFWqSWe/digRybrJLf6M4/AYuXZ86JBQgoYceOftVR c4xKCaTVoCEEMpHG9GkMQEP0L/EqJPSObZ+Sz7ZAXfRvoI/7tU12lP3HX8cdXiuLwFSh 4pF0vxzYHKyCzQbSxIZcfpgZ5BBAm6Y6+r9izttIGiOp00g0i0tUArWG/WfU1F3GQlqQ xH6w== X-Gm-Message-State: ACgBeo0EEiQXV4gOgSlFf9jJOzXc6YYSFASLavpkfXS2tA4KgneMQQGw n3NxIBXawWhvJenqB80O7bvSwZMmT2s= X-Received: by 2002:a05:622a:c6:b0:344:9c4b:1b23 with SMTP id p6-20020a05622a00c600b003449c4b1b23mr16329292qtw.567.1661895738485; Tue, 30 Aug 2022 14:42:18 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id fz18-20020a05622a5a9200b0031eb393aa45sm7529050qtb.40.2022.08.30.14.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 14:42:17 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/2] client/player: Fix checkpatch warning Date: Tue, 30 Aug 2022 14:42:14 -0700 Message-Id: <20220830214215.1137276-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This fixes the following checkpatch warning: WARNING:LINE_SPACING: Missing a blank line after declarations 216: FILE: client/player.c:625: + GDBusProxy *proxy = l->data; + print_player(proxy, NULL); --- client/player.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/client/player.c b/client/player.c index 3d2f41cb3666..0daacabf3c27 100644 --- a/client/player.c +++ b/client/player.c @@ -604,8 +604,10 @@ static void print_media(GDBusProxy *proxy, const char *description) g_free(str); } -static void print_player(GDBusProxy *proxy, const char *description) +static void print_player(void *data, void *user_data) { + GDBusProxy *proxy = data; + const char *description = user_data; char *str; str = proxy_description(proxy, "Player", description); @@ -618,12 +620,7 @@ static void print_player(GDBusProxy *proxy, const char *description) static void cmd_list(int argc, char *arg[]) { - GList *l; - - for (l = players; l; l = g_list_next(l)) { - GDBusProxy *proxy = l->data; - print_player(proxy, NULL); - } + g_list_foreach(players, print_player, NULL); return bt_shell_noninteractive_quit(EXIT_SUCCESS); } -- 2.37.2