Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp986443ybh; Mon, 13 Jul 2020 06:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyupUmSL7LfUnbH8qfF6lzwgdtiPRcIErshwyaSTYlYXfKCDmgv/xJa1Pi7jNmV9ng47ZX1 X-Received: by 2002:aa7:ce84:: with SMTP id y4mr90549442edv.113.1594647320981; Mon, 13 Jul 2020 06:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594647320; cv=none; d=google.com; s=arc-20160816; b=Xgrx8qRmHwZiXHNAGCl1BFAqUrSexrmzq0113VCMOEKlcHJlHTQ7tj/K+A9zwwDnBS AW/rL/Tg9BFVrzybYTDzqqIl/p4mCnSLrM0Oh7905GKeMh5jQhKx9CuaHpAjgIJEfcy7 RtTruW7TtR3O1riZsZiX9cZ4xrvGwYeFvIHtutP/yfoy/79bAWqGsmHsnsdQwYK0C0d7 1rihJx4t1WUMXSGkgpe3mftYL+Skrx1TCA+naL6giDqf5sYkfpzJmMyTtzDmzwjFM055 t3qcLcE3vKdbKtfSVETpsQJc5eqNt14FhcErnYCf1yZa+5B/MZMEG7V6o+xCI6plo7ON dCXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nqmyKTzt3lwEPvrP0okHquHOMFsd4iv01bKwi5bD524=; b=y1ZM7YWgnZDhYClGnkmqfguTmdp2m1+4aS2l/SAKonW9LmZjbIu5guyf9tOekhGPLs RYkyn8Cy4tqmKFegy9YuGnUbLn3PXsgI+x4cinvyr8OA96N4I9lbwJFeU3oCAFljPvD7 eEXY2DyG5cxFnmPSTavIEcJIC8W3Lv6gzDumq8XACjkuMtKXb7wBUJBd12U9oq2sluvP ZoKNrNssJFPI9uFZ9pmtcpX/bsaVneBBzkx5PqV4zDM8ZoRdux/mgQ3wZul+pOqLs/BH FB8M1A+OiwhqqSWPs5yU+2tBx5FaHuZiNwqrCs5GLMH6qHQJ0hlaXJCdJ4WD6eJDYVWd GveQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hLXxOMZI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si9173314edy.194.2020.07.13.06.34.57; Mon, 13 Jul 2020 06:35:20 -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=@kernel.org header.s=default header.b=hLXxOMZI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729872AbgGMNej (ORCPT + 99 others); Mon, 13 Jul 2020 09:34:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:43898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729805AbgGMNej (ORCPT ); Mon, 13 Jul 2020 09:34:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E374206F0; Mon, 13 Jul 2020 13:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594647279; bh=4/Ii7OKEjNLUXwutSsdeNHRAyBRktKgtQ/LgJoyu5I4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hLXxOMZIOTP7DENp/wJEFJfOmC48+2ZItUXBDkgUnH8GGoypLax1l1mSeUiXSOgxb 9I7cdjPG2jQ+eQTEzsgn/JSWSUtImKliX6xzfMhJoh2FG7pKhcHnmd+PZL1GZpbNDa eFznIwS50H3XkJZ2lnn4JdEjOsAb2RWyBQesLRNk= Date: Mon, 13 Jul 2020 15:34:38 +0200 From: Greg KH To: Saurav Girepunje Cc: abbotti@mev.co.uk, hsweeten@visionengravers.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] Staging: comedi: driver: Remove condition with no effect Message-ID: <20200713133438.GA3122574@kroah.com> References: <20200712070628.GA18340@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200712070628.GA18340@saurav> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 12:36:28PM +0530, Saurav Girepunje wrote: > 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; What gave that warning? The comment should show you why this is good to keep as-is, right? thanks, greg k-h