From patchwork Wed May 16 15:21:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10404165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36F6B60155 for ; Wed, 16 May 2018 15:21:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26A2728433 for ; Wed, 16 May 2018 15:21:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AF73284C4; Wed, 16 May 2018 15:21:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9836284FC for ; Wed, 16 May 2018 15:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750980AbeEPPVY (ORCPT ); Wed, 16 May 2018 11:21:24 -0400 Received: from osg.samsung.com ([64.30.133.232]:41335 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbeEPPVX (ORCPT ); Wed, 16 May 2018 11:21:23 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id B34DB39343; Wed, 16 May 2018 08:21:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KxWq80DfE14L; Wed, 16 May 2018 08:21:21 -0700 (PDT) Received: from smtp.s-opensource.com (179.187.99.131.dynamic.adsl.gvt.net.br [179.187.99.131]) by osg.samsung.com (Postfix) with ESMTPSA id 122013933B; Wed, 16 May 2018 08:21:21 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.91) (envelope-from ) id 1fIyEw-0004og-BR; Wed, 16 May 2018 11:21:18 -0400 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab , Sakari Ailus Subject: [PATCH] media: dw9807: remove an unused var Date: Wed, 16 May 2018 11:21:17 -0400 Message-Id: <7e6b6b945272c20f6b78d319e07f27897a8373c9.1526484075.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.17.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/media/i2c/dw9807.c: In function 'dw9807_set_dac': drivers/media/i2c/dw9807.c:81:16: warning: unused variable 'retry' [-Wunused-variable] int val, ret, retry = 0; ^ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/dw9807.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/dw9807.c b/drivers/media/i2c/dw9807.c index 28ede2b47acf..6ebb98717fb1 100644 --- a/drivers/media/i2c/dw9807.c +++ b/drivers/media/i2c/dw9807.c @@ -78,7 +78,7 @@ static int dw9807_set_dac(struct i2c_client *client, u16 data) const char tx_data[3] = { DW9807_MSB_ADDR, ((data >> 8) & 0x03), (data & 0xff) }; - int val, ret, retry = 0; + int val, ret; /* * According to the datasheet, need to check the bus status before we