From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbbKZIIb (ORCPT ); Thu, 26 Nov 2015 03:08:31 -0500 Received: from mail-io0-f174.google.com ([209.85.223.174]:34485 "EHLO mail-io0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbbKZII3 (ORCPT ); Thu, 26 Nov 2015 03:08:29 -0500 From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai , Mark Brown Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Sudip Mukherjee Subject: [PATCH v2] ASoC: hdac_hdmi: convert num_nodes to int 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 1.9.1