[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 10 Oct 2010 21:28:47 +0400
From: Vasiliy Kulikov <segooon@...il.com>
To: kernel-janitors@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
Harsha Priya <priya.harsha@...el.com>,
Vinod Koul <vinod.koul@...el.com>,
Alan Cox <alan@...ux.intel.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
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 <segooon@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists