Skip to content

Commit

Permalink
staging: intel_sst: fix signess error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Oct 10, 2010
1 parent 2dff527 commit 7915c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/intel_sst/intel_sst_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7915c0d

Please sign in to comment.