Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1123456pxb; Sun, 21 Feb 2021 12:30:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjGNZEhvx96LX1OTfhGT3/nhlhv0jAQe7rR5HA3vyAShTo1fXTgMEyjFMDNIhAlhzZV78C X-Received: by 2002:aa7:d64f:: with SMTP id v15mr3490708edr.358.1613939444579; Sun, 21 Feb 2021 12:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613939444; cv=none; d=google.com; s=arc-20160816; b=SfW78r5cAWgvW1mPu6ZqHQc4XVf92F2FY0TlLmkXCNokJO+9pugxTZwJHtnqKCM/d7 4qsxs8pUqIdKciG8D5j9zWepivk3ej5x7IpwO8M8Ssx5CJZC3Rn9+rmoq91qgEZPiAKQ rDKbT3Uw3/EBzSnQrC1mJfXSPDcQNIOJHqpqwqlWL1Yoz3KLwLZb0G9hYtN4hQ9g0Yk5 DEyC5dqV/DFKu6UDC120k5qkhAUERXUshwQ859RhDe8FE6k6tZWRn0TwDEfF6eBScf5P u/+t9DdyOSoEZz+OacIdQ9dZZeY9Brv4mZt9nYAR0WxmjE+l7GLKSP67gkMLcsZOHToH byTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DXNugBGB0R8hXYsSzzEua1tMZzyOESjH2acUqGOVMAk=; b=DmR9TBYvpDArbXBrtMJCqFpJuXsqZUlLLWuI4bFofhMd3DNEA9cAzTaxIYoPx0Wlfc rpznh0RugGsIPWpN8U5S9b+c+nP41gPVq4spncWlVrdZ/wGBZh3toXZIMH084FbMTiEe VbfdiazJnEPFSrzBRO4lxfHzIjLRuqJ+cbXHhCKi3voZ6bTwLorhePe7NLOPrbAQK57M SJO4G3B8qYBxhQ4zBMLponMHqYC8Iu05yMLmbPN6aCrD2Y3LAxUmAPHLtUXzaoSJoxW3 oX9wK3TXSeDTVsgKn3X2T/fYQEY/9dN+3UNCGiDTX7HBNIBgUTK2jriWKKbtR+JvMVf1 dZ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ng/tYMoW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p62si10195792edp.242.2021.02.21.12.30.22; Sun, 21 Feb 2021 12:30:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ng/tYMoW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbhBUU3o (ORCPT + 99 others); Sun, 21 Feb 2021 15:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhBUU3l (ORCPT ); Sun, 21 Feb 2021 15:29:41 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2E0EC061574 for ; Sun, 21 Feb 2021 12:29:00 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id t11so25923691ejx.6 for ; Sun, 21 Feb 2021 12:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DXNugBGB0R8hXYsSzzEua1tMZzyOESjH2acUqGOVMAk=; b=ng/tYMoWGOENzSQyaxlYYL/CYGAMQ1/B0f7U2j7e2L5MGpf+2K67nmABqAdlg9+Ed8 AeBX8L96IYodlLEhu71/BCwpoLUV6E/hAQpaQD7OIijGM1MXqYZcDUzA9DPVbI1Zz3j8 /XbCtp6lSZKsAgDvrpU2j177uOCV96uUq2XXPqKLlA0OnTXM9ZB/byz0srpZ2AFxJJx/ xCIcluSMOWdl/MdLz/rCWarCxnv9JcYM5kfJZBwBrgCsEuxAA8AqqayDQuIlAdgDls9/ NCiVzgJQUMO9FkQc4iOSjEu3qZq8O18mmaxSIG3MBc2OLCpEQdNp2OCrxefjWnQGN3rw 3gFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DXNugBGB0R8hXYsSzzEua1tMZzyOESjH2acUqGOVMAk=; b=BXeFGVTGKDqfXISnF3QQmOIVtxH/OX0AClHzwQkZalk6cyZFTl/O0m+ObyPlq+GrKm gG3Xu3lsBK/0lcDExBV6+h/9pJ8a3Jynwr5/gCaqhVdmmPvynWiSaueXmP4dMPlEc/31 s68XXtDv8mOZZCh5aZXaMGvlSUeHQYWFFFZeeh+xEH7lE7NJUljSruKdwbxoRzpYKJH4 ezqZd8M4q55L1Rx5VCfGi5HE1HeagdTtV1Jqc02uKWntjHezzoFBnwVe71q/A3qX/Usq GZcVSSJ11KYUaNANuA+dmPN6BnzpZPLANldwoFPL1KLMjZcp94IPJnLEz8hI++cANIPb oz4w== X-Gm-Message-State: AOAM531KSSI6visRDcAUXOCsndwf/mvu4E9JVu19SaonlH1RNZQnKdeH EaS6wh4EPbBcWZHUxuaDMhY= X-Received: by 2002:a17:906:115a:: with SMTP id i26mr13124196eja.10.1613939338771; Sun, 21 Feb 2021 12:28:58 -0800 (PST) Received: from TRWS9215.usr.ingenico.loc ([88.245.22.54]) by smtp.gmail.com with ESMTPSA id k27sm9124393eje.67.2021.02.21.12.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 12:28:58 -0800 (PST) From: Fatih Yildirim To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org, grandmaster@al2klimov.de Cc: Fatih Yildirim , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH -next] staging: comedi dt2814: Removed unused variables Date: Sun, 21 Feb 2021 23:28:55 +0300 Message-Id: <20210221202855.12442-1-yildirim.fatih@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed unused variables. Signed-off-by: Fatih Yildirim --- drivers/staging/comedi/drivers/dt2814.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2814.c b/drivers/staging/comedi/drivers/dt2814.c index bcf4d5444faf..bd329d7b4893 100644 --- a/drivers/staging/comedi/drivers/dt2814.c +++ b/drivers/staging/comedi/drivers/dt2814.c @@ -186,21 +186,17 @@ static int dt2814_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) static irqreturn_t dt2814_interrupt(int irq, void *d) { - int lo, hi; struct comedi_device *dev = d; struct dt2814_private *devpriv = dev->private; struct comedi_subdevice *s = dev->read_subdev; - int data; if (!dev->attached) { dev_err(dev->class_dev, "spurious interrupt\n"); return IRQ_HANDLED; } - hi = inb(dev->iobase + DT2814_DATA); - lo = inb(dev->iobase + DT2814_DATA); - - data = (hi << 4) | (lo >> 4); + inb(dev->iobase + DT2814_DATA); + inb(dev->iobase + DT2814_DATA); if (!(--devpriv->ntrig)) { int i; @@ -229,7 +225,6 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it) struct dt2814_private *devpriv; struct comedi_subdevice *s; int ret; - int i; ret = comedi_request_region(dev, it->options[0], 0x2); if (ret) @@ -241,8 +236,8 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it) dev_err(dev->class_dev, "reset error (fatal)\n"); return -EIO; } - i = inb(dev->iobase + DT2814_DATA); - i = inb(dev->iobase + DT2814_DATA); + inb(dev->iobase + DT2814_DATA); + inb(dev->iobase + DT2814_DATA); if (it->options[1]) { ret = request_irq(it->options[1], dt2814_interrupt, 0, -- 2.20.1