From patchwork Mon Dec 3 02:53:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 1831911 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by patchwork2.kernel.org (Postfix) with ESMTP id ADABDDF254 for ; Mon, 3 Dec 2012 02:57:27 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id qB32rm9m026606; Sun, 2 Dec 2012 20:53:48 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qB32rm1d008137; Sun, 2 Dec 2012 20:53:48 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Sun, 2 Dec 2012 20:53:47 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id qB32rlwx014728; Sun, 2 Dec 2012 20:53:47 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id B1F2D80628; Sun, 2 Dec 2012 20:53:47 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id B77B280626 for ; Sun, 2 Dec 2012 20:53:45 -0600 (CST) Received: from red.ext.ti.com (red.ext.ti.com [192.94.93.37]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id qB32rjpF001681 for ; Sun, 2 Dec 2012 20:53:45 -0600 (CST) Received: from psmtp.com (na3sys009amx229.postini.com [74.125.149.113]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id qB32riMM014333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 2 Dec 2012 20:53:45 -0600 Received: from mail-qc0-f173.google.com ([209.85.216.173]) (using TLSv1) by na3sys009amx229.postini.com ([74.125.148.10]) with SMTP; Sun, 02 Dec 2012 21:53:45 EST Received: by mail-qc0-f173.google.com with SMTP id b12so1295571qca.4 for ; Sun, 02 Dec 2012 18:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=rjp+GVAI3IGlm7bKHnHhsxaAsiQ7xDdJbNb2CJ6OxOc=; b=Ta8AVT/sxekLc1HgU0Qb//OXu/ulBIMlZFX1b24tTb+SnmrGf+DfVLJljpYLkT6k3p 4VHRW5Qqbm7YGWi3g0jVM+/ZgVH12+eLTNI61BhQMAXHKtQVVfkWpIm5fXfyVzs8JY/2 rfd0Fe4tl6RI6i37J+0t/z7Y9QX09vPMrXEe/27Zq5ur4mOW7BRJNGueDnyq3U8oJGTw ej5mLjI9UV3QU2cVkxm3eph7dc9X8Bzlj2Dl0wXhmIsHPXmKgRXQ5i+SUl3jJvZf5Mg7 xG9XkArgdaW63H2ZxsXPnFyluFmI9oa4XnCoWgv3haTe0Un7ZgtSf7MOdJ9/bDrwfVhv D24A== MIME-Version: 1.0 Received: by 10.224.19.74 with SMTP id z10mr14968466qaa.96.1354503224109; Sun, 02 Dec 2012 18:53:44 -0800 (PST) Received: by 10.229.126.165 with HTTP; Sun, 2 Dec 2012 18:53:44 -0800 (PST) Date: Sun, 2 Dec 2012 21:53:44 -0500 Message-ID: Subject: [PATCH -next] [media] davinci: vpbe: remove unused variable in vpbe_initialize() From: Wei Yongjun To: , , X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:13.29953/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-dkim: 1 skipped:no-policies X-pstn-settings: 2 (0.5000:0.0050) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [82/3] CC: , , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Wei Yongjun The variable 'output_index' is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun Acked-by: Prabhakar Lad --- drivers/media/platform/davinci/vpbe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 7f5cf9b..e0c79c1 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c @@ -584,7 +584,6 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) struct v4l2_subdev **enc_subdev; struct osd_state *osd_device; struct i2c_adapter *i2c_adap; - int output_index; int num_encoders; int ret = 0; int err; @@ -731,7 +730,6 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) /* set the current encoder and output to that of venc by default */ vpbe_dev->current_sd_index = 0; vpbe_dev->current_out_index = 0; - output_index = 0; mutex_unlock(&vpbe_dev->lock);