Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1639897ybl; Sat, 25 Jan 2020 05:16:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzmkyP03GvXEXnJyTefKQkCYw0GiU9FS8xfM3juNapP5aeMARjYQvqtukq3+V2zlLiUB6E6 X-Received: by 2002:aca:3d7:: with SMTP id 206mr2406077oid.98.1579958207221; Sat, 25 Jan 2020 05:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579958207; cv=none; d=google.com; s=arc-20160816; b=vKTr2B97Dhj4MmbTlF/C2ZeVmRjtO5rev95Haq0hEXxnPA6rmM+nJKeWdIE/GVk5Q/ YMgntlLvlyPXapnYqcQMzca/cNLlRIYm+C/5vquLwrAMjVUluGxPd5uGXpwEzqO2LIyX nbcG/ZVK73uoJNV7tNWn5lr+ew/p8zeK1WrKXi/sTi8A5MGAQiu4Vq5vFzKZqdgz877z bTTGKXtbLBpApkyO/LuIHFijwrEhtcJCx8Fnp7BSzx6S+l6Xjf5qCAYvUtzlY1BhjEP4 lOn9GPiSKZHY7AKO3RNWjACJBw5hkJJ/DHO0dMB4LNRDgS1k5+t+Xdt9iBTSwCUpxuIw INgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=3QVXWFxwGX7QiCNvy96Dga4mKxwmEj2CJq1V24a5GDQ=; b=Tccdn9yMKKQ+dOraUYeTz/izcDaUqpBIbpxK7SYhVonQ1D+P2OdaAHNhvmyfe5FMhF Komx4V4r2nwjUktxZJhy40D+4SJlOc8Me4r6IKnsDPEFDh0QRLiJmGSmFJEyU8VE7AFh owEL8a9tDXQgSmn30bhVXUoOXJ2oBu+sLizLMfRqtXu61MLG+ZY6+um1iPDxtoMJ9upi HPdZj0Tu3hHWo9VpfasRJlSbsuLgpf4c7nByN1nAO5upm+J/U4XTpQFFeMNllXHQCB+Y 78LIiAR4/LGl3RcmeaWYa2d7/nSSZouResUZU4az7Du6aBdNJGRUS/ff2O6xRFdBT//D ejzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=utalDz0D; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si1524853otl.82.2020.01.25.05.16.35; Sat, 25 Jan 2020 05:16:47 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=utalDz0D; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729027AbgAYNPm (ORCPT + 99 others); Sat, 25 Jan 2020 08:15:42 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43247 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgAYNPm (ORCPT ); Sat, 25 Jan 2020 08:15:42 -0500 Received: by mail-pg1-f193.google.com with SMTP id u131so2623524pgc.10 for ; Sat, 25 Jan 2020 05:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=3QVXWFxwGX7QiCNvy96Dga4mKxwmEj2CJq1V24a5GDQ=; b=utalDz0DtbPvdQB+fVEPFCD9uAV+diqbxtaE6nLAPAT4Rv551mgKHVL52z54ilOP+j 4NdcGGy4Iu8oF+pQNUPDtS2yL8kLE8H3HxIniwYOhxp/9iBOjDanzLIe8WSpyQbuWuFv pQ1eFhZINDOMd9Y6XOi8/9/pWlyVR5D9FynQbAWlV1+2hE1YJqWkBT4hDHnastA81fhF M2KvZwldi1zv1Srpm9cUteUYxO5Ylxvd5WbQhVX3I4wZfePzgtz0LZmb16gUguApSH5B KKcGGB0tZHazknx1GB/9swxz927Sw3gZsZsQSpCirB9JeI8mUN3bxlxe1/GXAUNf6Snl 5bBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=3QVXWFxwGX7QiCNvy96Dga4mKxwmEj2CJq1V24a5GDQ=; b=XV500P8HxyGf4iCFgZIlo7G9rw+UOs1G9ZKjlIrvXMa1wm234JAt9WYNis6SRWHNbW tA6PNlC6r80boBc44a54Gcm/DG6zvENL23YkMdwPxOFe56k77o3FbZOfeTx3yRQ/bMmS zcNLzixho/eWtvFPWYqGXrkfNPOueAfg2BhkwP6I8m8yfUUgVGwLp5DPrtvZ6k4bHD9v HC/q4ihefS4gcHjT0lLG7mN1gE8s4mUiv4Nk0FTtCGn6z8pcd77qm2m4Qq89ODPQt3Iy VNnv9FjAI65SwhfSdl0gR5S0jzwmmdqIJ9IXvNQ/4NKVclAKNlyYNBtGV/qsMCrQTQYt K6sw== X-Gm-Message-State: APjAAAV2+buzf5HySpHbSRrVJSVxz8d/St1pTe1CjUKcHa0lz44k0mpO ihUDe7BvMYv4oN7KNObQYo0= X-Received: by 2002:a63:34cc:: with SMTP id b195mr8099939pga.268.1579958141494; Sat, 25 Jan 2020 05:15:41 -0800 (PST) Received: from google.com ([123.201.163.7]) by smtp.gmail.com with ESMTPSA id c34sm9859242pgc.61.2020.01.25.05.15.39 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 25 Jan 2020 05:15:41 -0800 (PST) Date: Sat, 25 Jan 2020 18:45:35 +0530 From: Saurav Girepunje To: hsweeten@visionengravers.com, gregkh@linuxfoundation.org, saurav.girepunje@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: comedi: drivers: fix condition with no effect Message-ID: <20200125131535.GA4171@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.6.2-neo (NetBSD/sparc64) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix warning reorted by coccicheck WARNING: possible condition with no effect (if == else) Signed-off-by: Saurav Girepunje --- drivers/staging/comedi/drivers/das1800.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c index f16aa7e9..7ab72e8 100644 --- a/drivers/staging/comedi/drivers/das1800.c +++ b/drivers/staging/comedi/drivers/das1800.c @@ -1299,12 +1299,6 @@ static int das1800_attach(struct comedi_device *dev, outb(DAC(i), dev->iobase + DAS1800_SELECT); outw(0, dev->iobase + DAS1800_DAC); } - } else if (board->id == DAS1800_ID_AO) { - /* - * 'ao' boards have waveform analog outputs that are not - * currently supported. - */ - s->type = COMEDI_SUBD_UNUSED; } else { s->type = COMEDI_SUBD_UNUSED; } -- 1.9.1