diff --git a/libavcodec/mace.c b/libavcodec/mace.c
index bc71365161d2bf2668237a9f807ab7031328bc9d..18aaacaf12c3bfb485a7bac1e4de7255cbd830bd 100644
--- a/libavcodec/mace.c
+++ b/libavcodec/mace.c
@@ -382,7 +382,6 @@ static void Exp1to6(MACEContext *ctx,
 
 static int mace_decode_init(AVCodecContext * avctx)
 {
-    MACEContext *c = avctx->priv_data;
     if (avctx->channels > 2)
         return -1;
     return 0;