* [PATCH] staging: intel_sst: fix signess error
@ 2010-10-10 17:28 Vasiliy Kulikov
0 siblings, 0 replies; only message in thread
From: Vasiliy Kulikov @ 2010-10-10 17:28 UTC (permalink / raw)
To: kernel-janitors
Cc: Greg Kroah-Hartman, Harsha Priya, Vinod Koul, Alan Cox, devel,
linux-kernel
str_id was unsigned, so check for (str_id <= 0) made no sense.
Made it signed.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
---
Compile tested.
drivers/staging/intel_sst/intel_sst_stream.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/intel_sst/intel_sst_stream.c b/drivers/staging/intel_sst/intel_sst_stream.c
index ff46d5c..1ce3a9c 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;
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-10 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 17:28 [PATCH] staging: intel_sst: fix signess error Vasiliy Kulikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).