aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-30 06:45:36 -0400
committerTakashi Iwai <tiwai@suse.de>2011-06-30 06:45:36 -0400
commit286bed0f0c447b6660e72093d7e778784fdd9ee6 (patch)
tree248e7912053dbc6069d93f8356a89a917aa1ddb3
parent71276410e17653cfacfa238a363475cde9e18fb3 (diff)
ALSA: hdspm - Fix compile warnings with PPC
The char can be unsigned on some architectures. Since the code checks the negative values, they should be declared as signed char explicitly. sound/pci/rme9652/hdspm.c:5449: warning: comparison is always false due to limited range of data type sound/pci/rme9652/hdspm.c:5462: warning: comparison is always false due to limited range of data type Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/rme9652/hdspm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 3f08afc0f0d3..c8e402fc3782 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -896,11 +896,11 @@ struct hdspm {
896 unsigned char max_channels_in; 896 unsigned char max_channels_in;
897 unsigned char max_channels_out; 897 unsigned char max_channels_out;
898 898
899 char *channel_map_in; 899 signed char *channel_map_in;
900 char *channel_map_out; 900 signed char *channel_map_out;
901 901
902 char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs; 902 signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs;
903 char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs; 903 signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs;
904 904
905 char **port_names_in; 905 char **port_names_in;
906 char **port_names_out; 906 char **port_names_out;