Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939162ybi; Wed, 12 Jun 2019 11:03:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3VfbUmV5L9of00M/QYjWqIoNf/1QZiQ7MkrYLlN7HK4PGqmMUR1gJ2kYA9On3erirhgr6 X-Received: by 2002:a63:1c59:: with SMTP id c25mr428475pgm.395.1560362613427; Wed, 12 Jun 2019 11:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362613; cv=none; d=google.com; s=arc-20160816; b=gtewE48jWxHxVElcdfPnxpVYboZApPlGudprRxgDYUtMtuWdAdvZs3SDzNm2P2CFuy ifWK8KssVlXw6+zPqMtr9i9WxXbtsYZz+6RYmXp7fQR2mN/WKN+si2EWguHU8pLzgDiY B/3qG2ATA3JvQoFsfByG6LVdaaoZG6tsFBlxTa7+uua+O4B7DeZSJGaenaRlvbpN5f6L RvZdaUjXQqhbYgJ15PSBWlNTbtIxlSxC7c7zaqDAYIezhleOSsTErd+MrXFxE9fSEE9h pmuOO4wA+ZBKWPN7/TxN7OzKq6BE/qPBcOfoOZr7SxBPLJzsmlyw2cERWWaGSQGY1Sef TWiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0dtjO5hBiom/Of633BJ6CekCPuLMcom604guHw1N61k=; b=SZjZV3BLovae3thiTLBO9e8VmKDtnw3DhffMxPGG17kui1qkHp0wJw56DpWkqPQnUX fGRNOqYx5FjYxCEWo55ANDVQ71C6E/s+xBV1omO97Jq6JKRbXFGAJnqg1qwsr+CiFFlE VeN2IzieMbF3sMNjgB0wigeUoLLssQWGRUYq3P+fzp0EaGyR0qgyTQUnCbeL6jSkfkTH 8iQUM2SNPJ0fCpv8MaU8ZUkqq12fknr6FO9eOPssk1U2xSA7Qu+BL+8N6oxIV59sGB/o rl2zx07HnkZJZxslRK9vj/0tzbB125EneacXXemwIUS/Xw5BrFKzGky/8ylE+oC3c9TC r7Wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si418748pgk.92.2019.06.12.11.03.18; Wed, 12 Jun 2019 11:03:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439827AbfFLOmY (ORCPT + 99 others); Wed, 12 Jun 2019 10:42:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49790 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439755AbfFLOmY (ORCPT ); Wed, 12 Jun 2019 10:42:24 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hb4SA-0005uh-Fq; Wed, 12 Jun 2019 14:42:18 +0000 From: Colin King To: Maxime Jourdan , Mauro Carvalho Chehab , Greg Kroah-Hartman , Kevin Hilman , linux-media@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] staging: media: meson: remove redundant initialization of mpeg12 Date: Wed, 12 Jun 2019 15:42:18 +0100 Message-Id: <20190612144218.26149-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The pointer mpeg12 is being initialized however that value is never read and mpeg12 is being re-assigned almost immediately afterwards. Remove the redundant initialization. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/staging/media/meson/vdec/codec_mpeg12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/meson/vdec/codec_mpeg12.c b/drivers/staging/media/meson/vdec/codec_mpeg12.c index 5398fbf7ce20..48869cc3d973 100644 --- a/drivers/staging/media/meson/vdec/codec_mpeg12.c +++ b/drivers/staging/media/meson/vdec/codec_mpeg12.c @@ -63,7 +63,7 @@ static void codec_mpeg12_recycle(struct amvdec_core *core, u32 buf_idx) static int codec_mpeg12_start(struct amvdec_session *sess) { struct amvdec_core *core = sess->core; - struct codec_mpeg12 *mpeg12 = sess->priv; + struct codec_mpeg12 *mpeg12; int ret; mpeg12 = kzalloc(sizeof(*mpeg12), GFP_KERNEL); -- 2.20.1