Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2798357rwr; Fri, 21 Apr 2023 14:26:37 -0700 (PDT) X-Google-Smtp-Source: AKy350ZaniM+1KmL7wItHWwONyR79M8NNUKWvjjKggerNfJefYyup8Xytv2Th0z84so11p+0d3bp X-Received: by 2002:a17:90a:e551:b0:247:8f24:eb27 with SMTP id ei17-20020a17090ae55100b002478f24eb27mr6428358pjb.29.1682112396910; Fri, 21 Apr 2023 14:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682112396; cv=none; d=google.com; s=arc-20160816; b=pRGZF2FKSGuybN5wcDqNq9gizNEYhvfKRR8TyjiGvb4LKnu7Ur4VIUG8l+eQ6wM8k5 p4IU3s962ePg1vytber97ReXOCl6rALj1i1hDwU6DqF8WOPuEM/aqEsHIeaPLWKWycLB R6zaetf5KSrHnWhvKnSzHSfvrdr6p2jA4bFLrZ8px78J7cBm2PVK56HxpfpjPRAatEA+ WgxMHUAgwwRpSlhMmSyRyI/YvxPncAC6kFI29GlmCgmjF/ryFn+DBbVhDEx7XEpIojn6 UijxU2yXjMHJSVxvl8akVmf6nQXykeiWRl7hmgtTSpoZL3eHfBYRSPm14SKP9kOpbOme Mhxg== 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:subject :message-id:to:from:date:dkim-signature; bh=Pk/WVVZamKI18IKpNWPORVdduXQAZR4YPyK1yCu1P+4=; b=1DiFOXc2E1Uu5k10Ue2om23zbKxvGFRHX71622/8agEjsqi13DUYakkKhR6XJYJWGa gdFYXrkEMQfMkNVBSEKHvSE+QzvZW8RYAqo0cfxp679SCrP95mQ1gyxD5+lC3V4Umnr1 3GxZ1r1wJUqgnl0la6lWlg8S0+19lfp7rPQ786VmJp3mTzSCpgRqLePWgdlqt7/G989r UgeVjC41FYHMEC0RjUkPqC04X2vYV4fbRgbi/Dr9AElR7yiPBqu+/b5udpX3eOUXhg+2 I1jAW3RyGLax7yPbaC/SiehozMEMIWn3KAM6GWtT+HMZxHiX1iWCIGUqELx3ubmLJop6 vnkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@github.com header.s=pf2023 header.b=I1VMVl4Z; 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=REJECT sp=REJECT dis=NONE) header.from=github.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a17090a3e4c00b00247a0948f52si5308640pjm.58.2023.04.21.14.26.11; Fri, 21 Apr 2023 14:26:36 -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=@github.com header.s=pf2023 header.b=I1VMVl4Z; 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=REJECT sp=REJECT dis=NONE) header.from=github.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbjDUVOI (ORCPT + 99 others); Fri, 21 Apr 2023 17:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjDUVOH (ORCPT ); Fri, 21 Apr 2023 17:14:07 -0400 Received: from out-17.smtp.github.com (out-17.smtp.github.com [192.30.252.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2A74273A for ; Fri, 21 Apr 2023 14:13:52 -0700 (PDT) Received: from github.com (hubbernetes-node-ba3d946.va3-iad.github.net [10.48.132.29]) by smtp.github.com (Postfix) with ESMTPA id D41685C038F for ; Fri, 21 Apr 2023 14:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1682111631; bh=Pk/WVVZamKI18IKpNWPORVdduXQAZR4YPyK1yCu1P+4=; h=Date:From:To:Subject:From; b=I1VMVl4ZKPxIhWEIOBQxDV4d29c5xPAmghIhKrraMxzTQc6Uixi6yPDUEjMwwQPD6 BE+BPMWGrV1h8rR0lzR20r8doH3MTCS56oMop4BdZgSp2Osy3em1rwNThbx3cYSuTH 8oDGcTRe2SVAWVT52HKcNRBhv5O/Cf8Mvzn7UkaE= Date: Fri, 21 Apr 2023 14:13:51 -0700 From: BluezTestBot To: linux-bluetooth@vger.kernel.org Message-ID: Subject: [bluez/bluez] 9a0acc: obexd: agent: Use if-elseif instead of multi-if to... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: linux-bluetooth@vger.kernel.org X-Auto-Response-Suppress: All X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: 9a0acc7984ef79e287ec9db70703405f64a79bee https://github.com/bluez/bluez/commit/9a0acc7984ef79e287ec9db70703405f64a79bee Author: Guiting Shen Date: 2023-04-21 (Fri, 21 Apr 2023) Changed paths: M obexd/src/manager.c Log Message: ----------- obexd: agent: Use if-elseif instead of multi-if to check error message The obex agent will return only one error message at the same time.So we should use if-elseif instead of multi-if to check error message which maybe DEBUG_ERROR_NO_REPLY or OBEX_ERROR_REJECT in agent_reply().