From patchwork Thu Nov 26 08:08:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7705211 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 75BB4BF90C for ; Thu, 26 Nov 2015 08:08:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8CFE206CD for ; Thu, 26 Nov 2015 08:08:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id DD98C20629 for ; Thu, 26 Nov 2015 08:08:47 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B0DC5266617; Thu, 26 Nov 2015 09:08:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1C636266591; Thu, 26 Nov 2015 09:08:39 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 92F6D2665A0; Thu, 26 Nov 2015 09:08:37 +0100 (CET) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by alsa0.perex.cz (Postfix) with ESMTP id 31AED264F23 for ; Thu, 26 Nov 2015 09:08:30 +0100 (CET) Received: by ioir85 with SMTP id r85so78558817ioi.1 for ; Thu, 26 Nov 2015 00:08:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WxCh6bkizYV+weF0v0xCT+jEaWHP6qaMp24nkLetd/o=; b=E/ifsgRW2HMcD5P4jv1ic1c/xktE+NkSjTluUGTqeWDi44uJzwp7RH+EOo4V4o4zOs JEzaaNHI8lLtttheDqK3AXoMfOk9zEmsX5eka6anJ/rTdYfy4IpwijcnSfZfFUYpQQ1x d4RqqVZCRU7AO5vT+0HSCQtUpcVDmsw5v+smAAiK6+5oE7L/QnyzA2Qoczd8bHoNxypG T7Di0u696O32ioAgAXlmdkOCvSJDqkdSOsEhZ0V4jdUaf2S5uIN1vesPAFjVrzwdpmsP 9CWl3NEE19RSp1dohUjOuJ6PXJPy7L//THMX+4kWWfc/o6hdJl3c5sxc7Hf3FhUFLvLH rI9Q== X-Received: by 10.98.68.8 with SMTP id r8mr37515864pfa.159.1448525308500; Thu, 26 Nov 2015 00:08:28 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([122.169.181.80]) by smtp.gmail.com with ESMTPSA id 7sm25517447pfb.78.2015.11.26.00.08.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Nov 2015 00:08:27 -0800 (PST) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai , Mark Brown Date: Thu, 26 Nov 2015 13:38:19 +0530 Message-Id: <1448525299-7011-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH v2] ASoC: hdac_hdmi: convert num_nodes to int X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP All uses of num_nodes are considering it as a signed integer and that is very much clear when we try to save the error value in it and later try to compare it with less than 0. Signed-off-by: Sudip Mukherjee --- include/sound/hdaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index e2b712c..c5fad14 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -71,7 +71,7 @@ struct hdac_device { unsigned int flags, unsigned int *res); /* widgets */ - unsigned int num_nodes; + int num_nodes; hda_nid_t start_nid, end_nid; /* misc flags */