Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4075894ybg; Tue, 29 Oct 2019 01:37:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeHzwv6SnMmIKJAy9D3/2oUbZHJAPYM0hsu1ShUymQl9gRKPYxSlzz0AISH9cLZx6paz2g X-Received: by 2002:aa7:db46:: with SMTP id n6mr22804775edt.46.1572338227900; Tue, 29 Oct 2019 01:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572338227; cv=none; d=google.com; s=arc-20160816; b=X5l7cIjWKwtDSA0EKC292mWGBANYEQVWNgP36a8ZLSKzzKFuqjuU9y4kvHlvegKbuz xVNqy6ZM/1v2rDIoWKEYWbQXGnwv2n87TNyJzhzZk5P7NHOUSjXiklE7yUdCPHyVkr7+ YpJQBEcOKCGai+Wbxn6yBAGYD3quUP0xYLetLlENlGqiMEBm62JIvit+Cy4OsvVvrnrE Y6vlLY6617u4jy7K6PIYEBBAzYO2Tc+G4MJdfEgyZSven8PF93oFl7qOsk9wX/wDcb2n Xe0hwmVkkB3U6mlyA0TDlVbzTpz3lAGu4inNJJvDHGc5kzvHFDCtoo7ZXqNczVlz12tC xcxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=lf5s6Fz7leqrQMKj0V75R9m9lTLSurFPPz+2KwV5ePI=; b=mRgcPpwdouuy4e6O5ltq4UWbId46MXZYTAOmbrNf7k38kFty/+DsroQnQdDasFUtqi aY+rgAKWTlbDXFSUu4mk6kuY/xz7vV5FwRn400ZCPrycoYCH35zzOlP4SYggheenYOwH lXGsAAkNnXMMdcIrtrsw6k+fKbT7cpWl/2RivHnKruG7842/3E1RbeeAAXdYGyzyRkfr AqePaVXkjV+7/WHuuURwHl6TQpJUWrDA844ebCsEPW/OQW3eCVYAnXX+qDsPKeWrJggX MEyJjXf+mXkReDd3NFx1zRCGGfm5eSg7sRhFYuke/LFx6nFB3NZR88k6ZD9yD3AR6Gzw to7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N478fBlO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si7952288ejz.22.2019.10.29.01.36.44; Tue, 29 Oct 2019 01:37: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N478fBlO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729334AbfJ2IfT (ORCPT + 99 others); Tue, 29 Oct 2019 04:35:19 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33636 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728892AbfJ2IfT (ORCPT ); Tue, 29 Oct 2019 04:35:19 -0400 Received: by mail-pg1-f194.google.com with SMTP id u23so9040045pgo.0 for ; Tue, 29 Oct 2019 01:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=lf5s6Fz7leqrQMKj0V75R9m9lTLSurFPPz+2KwV5ePI=; b=N478fBlO32UC62rsQLpqYQg4ISJscCpnddi7FsAoBSPy9+yzNYdJrPT7MIUkMBikZN jrRS23f1wxXWb4MlnpX0rfF6wRl5UtCkmMK7O2afrn9esHONx7RaSn5GiaLYrFoCj0Zf b3ZqgIoJcFsu4Fm45xrGvPC/qlQTH3hgOI+I+/FsmNhndFingDZPDSDLSQqpfTTKwoRD QoJLpwdwLtj/7/nA+7XzHEp8+W3Rzl0byPBmiCmoW25t5RtxxoIwUd6LTadK4Uflbbmh kdqEwvfSyYrnscOPd3dcssaCW/SoQrkRrtKb9673BtUfsGM9c1c2cnjBU85TsdpqVSov BcfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=lf5s6Fz7leqrQMKj0V75R9m9lTLSurFPPz+2KwV5ePI=; b=pv0nww1ooED/QZAL6gvqx+wfAwJn8oDFcz2YFPy9mM8rnaEW0koB6ue94xfTHh8XOV NHAnEi/lfBlRgm44kPoBJFhRGXs50lF6Y1JuA5bl5habkM2VmsxBXb+xOipcTcO88Nc4 NgpYRR5YFS9gjQ2k2lLhiqRSaQHJk9NB8PtqDtZ81pLp42kSmbrd5qILW8+bPYY+6XLC brE19k0JDufr/vIi0/nri51rGI2/QLhpwT6GnMXWryTAvL1D+xuGizWJ6E66flf+35+V icM0A0bgJmHlgln1a9DINUMWBd4BGHrAY5UNZaS+/XBluyOeisc4vUzaysKWUGFaU5Yw ZkUA== X-Gm-Message-State: APjAAAV8NbcytezwdMHbCwNftrhs0HyHKiRMmuQL0cNNdTVRCo6Zkoq/ wjf8f4c1fnY/qNBkRN27ZIk= X-Received: by 2002:a62:3896:: with SMTP id f144mr2610163pfa.254.1572338118506; Tue, 29 Oct 2019 01:35:18 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id c6sm11830289pfj.59.2019.10.29.01.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 01:35:17 -0700 (PDT) Date: Tue, 29 Oct 2019 14:05:11 +0530 From: Saurav Girepunje To: perex@perex.cz, tiwai@suse.com, rfontana@redhat.com, saurav.girepunje@gmail.com, gregkh@linuxfoundation.org, allison@lohutok.net, tglx@linutronix.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] usb: clock.c : usb true/false for bool return type Message-ID: <20191029083509.GA8293@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use true/false for bool type return in uac_clock_source_is_valid(). Signed-off-by: Saurav Girepunje --- sound/usb/clock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 6b8c14f9b5d4..8b8ab83fac0d 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -165,21 +165,21 @@ static bool uac_clock_source_is_valid(struct snd_usb_audio *chip, snd_usb_find_clock_source_v3(chip->ctrl_intf, source_id); if (!cs_desc) - return 0; + return false; bmControls = le32_to_cpu(cs_desc->bmControls); } else { /* UAC_VERSION_1/2 */ struct uac_clock_source_descriptor *cs_desc = snd_usb_find_clock_source(chip->ctrl_intf, source_id); if (!cs_desc) - return 0; + return false; bmControls = cs_desc->bmControls; } /* If a clock source can't tell us whether it's valid, we assume it is */ if (!uac_v2v3_control_is_readable(bmControls, UAC2_CS_CONTROL_CLOCK_VALID)) - return 1; + return true; err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), UAC2_CS_CUR, USB_TYPE_CLASS | USB_RECIP_INTERFACE | USB_DIR_IN, @@ -191,10 +191,10 @@ static bool uac_clock_source_is_valid(struct snd_usb_audio *chip, dev_warn(&dev->dev, "%s(): cannot get clock validity for id %d\n", __func__, source_id); - return 0; + return false; } - return !!data; + return !!data ? true : false; } static int __uac_clock_find_source(struct snd_usb_audio *chip, int entity_id, -- 2.20.1