public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ASoC: hdac_hdmi: convert num_nodes to int
@ 2015-11-26  8:08 Sudip Mukherjee
  2015-11-26  8:23 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2015-11-26  8:08 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai, Mark Brown
  Cc: linux-kernel, alsa-devel, Sudip Mukherjee

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 <sudip@vectorindia.org>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-26  8:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  8:08 [PATCH v2] ASoC: hdac_hdmi: convert num_nodes to int Sudip Mukherjee
2015-11-26  8:23 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox