Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3146189img; Mon, 25 Mar 2019 04:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKNKO9WhZ/cVm3ag4ubRJvMyFPKdrvXaNnhvZL3UgvD7Nqye9PCgMLvv0YOB7bA1E1AHia X-Received: by 2002:a17:902:20e5:: with SMTP id v34mr24887104plg.319.1553514667255; Mon, 25 Mar 2019 04:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553514667; cv=none; d=google.com; s=arc-20160816; b=oR3bjF+oACIMSKydNCo7p0sBl7rHDMMkBzXHu6F0Kmv8yxWaqxzB+KbNy5c0HiInxw P3kQcyfQpQ2ldbBxPcpVskoSyfvIR1T/37OzXBjutDPBt3Tt5SLNaiFlaGBLH1W8fHnZ B51ny0WhSwYJrOBJcR3GhnYMewR3Yuf3yi7SXT6dMy3baP3X/A1k+mWZugVBaSUS+khJ x1v35HHnQu5oXegkxjmULtbZ5eNM0YvLmE0qw5uweKb/KRsUHtZvQIr8oWHPzXZGK0H6 MPRPBZBrYWxSc3MWEemKtiswHcuDQTCl+RMZvqPCnBnpaqPjf44ppmroj067nA5ciDSW rkLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject; bh=BG8vL9eZzdFTCOeVfvY/zzHE8nIhd5/I6bjrpi7hc3M=; b=hyaQICqcCjiSNnSvuaUEuZYpwuOXqfjmDeUhX4INcHM6Lx+L5vVL4VMpzwJPWbfz7f r4YNRhPczU8ViAzn95KXDBnW16iHMharGjMAjjZDUCn7aE4e6rITJxaHkg4s3ZvLCCW/ 2HBQLAvMKEvdztzhjYnGsEFvpZsEC6yl2FVHIlXr4IjtGjoPjZKsPHnjX01fGBm3qYio WNxgCKHbZxkMZ/uewdNBysOCe9EysCiiWGetZcA+j/bATbDwYnS+tzK4+jnUQQdHg5gP XepabBJ6xKKqlj/lDsM7kJtiX6BpP/xom2h1NMo1CQjhucJ+6SPmdmtuFFdmMOjlAz+n LOmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c32si14207662plj.282.2019.03.25.04.50.51; Mon, 25 Mar 2019 04:51:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730986AbfCYLtv (ORCPT + 99 others); Mon, 25 Mar 2019 07:49:51 -0400 Received: from ns.iliad.fr ([212.27.33.1]:49834 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730917AbfCYLtu (ORCPT ); Mon, 25 Mar 2019 07:49:50 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 4ED0D208D5; Mon, 25 Mar 2019 12:49:48 +0100 (CET) Received: from [192.168.108.8] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 35392207E5; Mon, 25 Mar 2019 12:49:48 +0100 (CET) Subject: Re: [PATCH v4 1/2] Bluetooth: hci_qca: Added support for WCN3998 To: Harish Bandi References: <1553513491-25763-1-git-send-email-c-hbandi@codeaurora.org> <1553513491-25763-2-git-send-email-c-hbandi@codeaurora.org> Cc: MSM , LKML , Matthias Kaehlcke From: Marc Gonzalez Message-ID: Date: Mon, 25 Mar 2019 12:49:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1553513491-25763-2-git-send-email-c-hbandi@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Mon Mar 25 12:49:48 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/03/2019 12:31, Harish Bandi wrote: > +bool is_qca_soc_type_wcn399x_family(enum qca_btsoc_type soc_type) > +{ > + if ((soc_type == QCA_WCN3990) || (soc_type == QCA_WCN3998)) ^ ^ spurious white-space here as well > + return true; > + > + return false; > +} (Apologies for the bike-shed) I don't know what the kernel coding-style says about this, but for functions returning bool, isn't it better to write return $BOOLEAN_EXPRESSION; instead of if ($BOOLEAN_EXPRESSION) return true; return false; i.e. bool is_qca_soc_type_wcn399x_family(enum qca_btsoc_type soc_type) { return soc_type == QCA_WCN3990 || soc_type == QCA_WCN3998; } Regards.