]> git.alsa-project.org Git - tinycompress.git/commitdiff
compress: remove unused variables
authorVinod Koul <vinod.koul@intel.com>
Mon, 18 Feb 2013 11:13:03 +0000 (16:43 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 18 Feb 2013 14:14:08 +0000 (19:44 +0530)
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c

index a8964f417caf324f53f33a1967a829da0d44a0d5..d98517d3494a59ae8e0d0b21d0353cf2e06b58dc 100644 (file)
@@ -204,7 +204,6 @@ struct compress *compress_open(unsigned int card, unsigned int device,
        struct compress *compress;
        struct snd_compr_params params;
        char fn[256];
-       int rc;
 
        compress = calloc(1, sizeof(struct compress));
        if (!compress || !config) {
@@ -397,12 +396,10 @@ int compress_drain(struct compress *compress)
 bool is_codec_supported(unsigned int card, unsigned int device,
                unsigned int flags, struct snd_codec *codec)
 {
-       struct snd_compr_params params;
        unsigned int dev_flag;
        bool ret;
        int fd;
        char fn[256];
-       int rc;
 
        snprintf(fn, sizeof(fn), "/dev/snd/comprC%uD%u", card, device);