compute_mdct_coefficients(): Kill pointless cast.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Nov 2009 14:58:38 +0000 (15:58 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:29 +0000 (19:34 +0100)
(pwd->block_len / 2) is going to be converted to a float also without
this cast.

wmadec_filter.c

index a404f35ddd12e556e1e0d65c9270798a764e01c3..f8ea4c83a9328776dd2eaf94f2ca6f5adffdfa94 100644 (file)
@@ -727,7 +727,7 @@ static void compute_mdct_coefficients(struct private_wmadec_data *pwd,
                int bsize, int total_gain, int nb_coefs[MAX_CHANNELS])
 {
        int ch;
                int bsize, int total_gain, int nb_coefs[MAX_CHANNELS])
 {
        int ch;
-       float mdct_norm = 1.0 / (float)(pwd->block_len / 2);
+       float mdct_norm = 1.0 / (pwd->block_len / 2);
 
        for (ch = 0; ch < pwd->ahi.channels; ch++) {
                if (pwd->channel_coded[ch]) {
 
        for (ch = 0; ch < pwd->ahi.channels; ch++) {
                if (pwd->channel_coded[ch]) {