Skip to contentSkip to conversation

staging: intel_sst: fix signess error

PATCH New Vasiliy Kulikov 1 participant 1 message Oct 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: intel_sst: fix signess error

str_id was unsigned, so check for (str_id <= 0) made no sense. Made it signed.

---
Compile tested.

 drivers/staging/intel_sst/intel_sst_stream.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/staging/intel_sst/intel_sst_stream.c +2 -1
index ff46d5c..1ce3a9c 100644
@@ -117,7 +117,8 @@ int sst_alloc_stream(char *params, unsigned int stream_ops,
 {
 	struct ipc_post *msg = NULL;
 	struct snd_sst_alloc_params alloc_param;
-	unsigned int pcm_slot = 0, num_ch, str_id;
+	unsigned int pcm_slot = 0, num_ch;
+	int str_id;
 	struct snd_sst_stream_params *sparams;
 	struct stream_info *str_info;
 
Signature · 1 line
1.7.0.4