Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp111064ybh; Sun, 12 Jul 2020 00:09:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCfpXtMoVTDLuQlSGF1y8uBhMwNvBQeLrJqFZN5FpUpFrWJSmsPs2VxenBKRMrd/BbdTrP X-Received: by 2002:aa7:db11:: with SMTP id t17mr82842318eds.365.1594537741159; Sun, 12 Jul 2020 00:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594537741; cv=none; d=google.com; s=arc-20160816; b=t5sB1ObcdAakyDXlyagFN4+i2ToQ67fvOH8D8MtQZS4gZUtCNI6BFlM6k7z4FxIFaS S0M+dFVrPR8r7YwYNE/jsN42JqUheoMyoQJwX8wukPTStQ7EcN4oUUkkYd0OytnJbn5d 1tHZG9T3dEcWzAD/Xz6HrwBJK3p1WRSqKN1GO6LUFYOdZ+6v4jOtyyDe37Jo9NbrI19g xfL9ZgcOqlOzox2UbzSXZnCUshrxiCFr14H+/qAR0CxI3sdO5wVHvtJYB4sXpMG5dizC H+KVgbhHzug9CALg6u3DCm92AxKxvyp6rfE1MNkKQrXKRsdkm/iXntEiDxU77MO7eW11 PRrw== 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=1RQK81eHkq8yc1kfeadt5EYNtBGoEuKdAYto1gErhzc=; b=sclCxprSTcQWWU3sx1izeBV4UPfn3j86xP7lq9lARQ9zmBuXRoSXhVrBp9r9cUupLV 67sUYph/CH3XiXkKZSGFyCN8GIWgdylUX6wRdJXnrPmxIIaJ3Oy5F1Et9qL+kpNYp6Oy EuXxspuo5e7Cs1l2gQqZwXVWE9QHmbFOKNX5flBPPYyR63vApcNUq7tiv4BBJv+IkVsA MYle+7FUCtTV5k4MYufnbMoQyW/8Bk581OzLb4+FKI6hQX/ZE6IHIesaLARURlpS1sIi KyNwaje4Gy1bELESBrBgoG1WxsIAFl33Y0ipbozpTus91NQd/Pp1gUHFDFL8lxTIyNvj i93w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A0MiyFdd; 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 q5si2632086edr.260.2020.07.12.00.08.37; Sun, 12 Jul 2020 00:09:01 -0700 (PDT) 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=A0MiyFdd; 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 S1728341AbgGLHGi (ORCPT + 99 others); Sun, 12 Jul 2020 03:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727777AbgGLHGg (ORCPT ); Sun, 12 Jul 2020 03:06:36 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 795F3C08C5DD for ; Sun, 12 Jul 2020 00:06:35 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id x11so4130214plo.7 for ; Sun, 12 Jul 2020 00:06:35 -0700 (PDT) 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=1RQK81eHkq8yc1kfeadt5EYNtBGoEuKdAYto1gErhzc=; b=A0MiyFddpyFuTHAgIm24ljX0OliA2LRGPrT4rgFhlZRP981ZJCrPmM/PDO50nc62e4 N/rhxwgbehdppico+uJVvsRJT9GlYP2fKVHP5Z5MVJBKvayG6qoqv6UGA6nEHzSTWixQ vZPl1u5j1pdzi4AQ5mY7DvEaZ5G9CTraR628BLzAysBM8NxX0J7248dt1ctP3cdTGBdk 4ki6077MMSTgRqm6lPK9P6tjua8ucbOZ/LQ0tqhWI+k64ZJkdSAkTbe9yA81/eW2enWE /K1jpszIdHOy5nZdvHh0BxyGIc/0mp5mALu5dh0nqHX8V6HzhYNVN3zUfH8SnB0eYmXo whDQ== 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=1RQK81eHkq8yc1kfeadt5EYNtBGoEuKdAYto1gErhzc=; b=fgugp6HAotYA3n52TL+XhVXq3Z1yyRgl0cjRlozau4XY+R2nDjLYZZ7q8UgsdtDiC8 JSk0Mz4YFmSlrEQcRbeaJPxxsKAv6OWV4LBTUG7pKrEzQVpncxTCAQE36QCWpHMn9y+k aADYL30cA+BTVDua09hjbSHwKJ3JenYiQbOrPUWQaZehXMbEusb5B5sg3/T4IBCv5a6/ skPMKOtaF/S+XkEhaSKDjs0EnlHir8Zne8l7ljH3iYdPvbZpIbm/R7l/98f5MRylRi/0 oeT7QM1HGHrhl95uJnYNL0/USfyfcLqWa0sK8T8QeUbrTISWIAtiVmFEktVUy6Geg8eh Zl6g== X-Gm-Message-State: AOAM531xS26NnyeNs92PAAVSWJDbUZaZNRUQ4fmPuJljspYoo5whXRTs XpuupoBxrGbnTEd5zAI5taA= X-Received: by 2002:a17:90a:fd12:: with SMTP id cv18mr14477227pjb.66.1594537594990; Sun, 12 Jul 2020 00:06:34 -0700 (PDT) Received: from saurav ([203.187.233.95]) by smtp.gmail.com with ESMTPSA id g8sm10338465pgr.70.2020.07.12.00.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 00:06:34 -0700 (PDT) Date: Sun, 12 Jul 2020 12:36:28 +0530 From: Saurav Girepunje To: abbotti@mev.co.uk, 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: driver: Remove condition with no effect Message-ID: <20200712070628.GA18340@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove below warning in das1800.c 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 f16aa7e9f4f3..7ab72e83d3d0 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; } -- 2.20.1