From 7915c0d4d226a790e2ffb85cb3386ceaea6ffae2 Mon Sep 17 00:00:00 2001 From: Vasiliy Kulikov Date: Sun, 10 Oct 2010 21:28:47 +0400 Subject: [PATCH] staging: intel_sst: fix signess error str_id was unsigned, so check for (str_id <= 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman --- drivers/staging/intel_sst/intel_sst_stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/intel_sst/intel_sst_stream.c b/drivers/staging/intel_sst/intel_sst_stream.c index ff46d5ccf781..1ce3a9c4e3d5 100644 --- a/drivers/staging/intel_sst/intel_sst_stream.c +++ b/drivers/staging/intel_sst/intel_sst_stream.c @@ -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; -- 2.39.5