staging: intel_sst: fix signess error
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 10 Oct 2010 17:28:47 +0000 (21:28 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 10 Oct 2010 18:25:00 +0000 (11:25 -0700)
str_id was unsigned, so check for (str_id <= 0) made no sense.
Made it signed.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intel_sst_stream.c

index ff46d5ccf78145c6e17e2e5e6d17ae6ad05a8e1e..1ce3a9c4e3d5655e6fe6ef6c875947e396f5670d 100644 (file)
@@ -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;