Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp993894ybh; Mon, 13 Jul 2020 06:47:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF/Hnipr/LpQjE7lw/Oe6tvmYuPIstlp/6s18A+48Hp7yLes/gOnnZU8b59aPz0kn6GQko X-Received: by 2002:a17:906:7250:: with SMTP id n16mr66984487ejk.290.1594648050895; Mon, 13 Jul 2020 06:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594648050; cv=none; d=google.com; s=arc-20160816; b=Dh1lw9x4zyG2GjeOgBJP2APLKy8tHVQZ56votM/YUM4UM0BPf1wDdFS3bx71d0gMz4 Fz6VsB8CS9cS9D56d6ELa7Ugqx0pnIoM2qjiIsY767TA68ae31ljKe0e2tAaLisCe1ti gK9fnxlIATX7u6Wu1YIKtymYJ6/m0FmiGmWd5Fcxf8FJXEdtJBL0N+bhNUwTPfsPdzSR 6ZLofh4gXqYW+KiqTDoHA23pq0HDOO1PuqSUAS7eOo4AY2TP1pjE06f9ZaDcKPlZ8edD oMVGPlJpoVgevfKpnAV8NrqO/BgPxnvRGMjdKsp054KUNGoinIoSe4kpKfzybz9ibDA/ wNyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-signature; bh=/+gvDzG/6NXTqK5JhsF9wxiWF18vmMa8PFoosDEJVKQ=; b=ZGx9ys9kBkQMrN750GfOW/1Zl4t2D4EF4NxPo0+kprfY25im3rsKtezLYnvEUQGN4N QFHGREz1zXm6DNciltSRvtjO3hPd0qyuflOWoVGeMutxtidb/Vc5RPk4eZA8QFbQMkrP alQ4g0oSf7TAm75yncvVFTsTOGNoduhDslyU+YPtTs42ono02UttEsGCIvWBKcZOOKmF OWZoP8MvrNgY+TrirPnhVBYxiYBoWS1ucHwWNWtzs2XcqtK5oquatscV1XRRX8pWmT5I ajdwOy24lXmzFLTnWDBUb+fyEVTn1aBOzyan85NoAEa/fFmGQg602UjbSGiDOgWdlaM8 eOUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@g001.emailsrvr.com header.s=20190322-9u7zjiwi header.b=NqliLYf9; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=nDT0A7RU; 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 g13si8433224edy.128.2020.07.13.06.47.07; Mon, 13 Jul 2020 06:47:30 -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=@g001.emailsrvr.com header.s=20190322-9u7zjiwi header.b=NqliLYf9; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=nDT0A7RU; 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 S1729722AbgGMNqq (ORCPT + 99 others); Mon, 13 Jul 2020 09:46:46 -0400 Received: from smtp115.iad3b.emailsrvr.com ([146.20.161.115]:54193 "EHLO smtp115.iad3b.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728950AbgGMNqq (ORCPT ); Mon, 13 Jul 2020 09:46:46 -0400 X-Greylist: delayed 323 seconds by postgrey-1.27 at vger.kernel.org; Mon, 13 Jul 2020 09:46:45 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=g001.emailsrvr.com; s=20190322-9u7zjiwi; t=1594647682; bh=EOOEcwVnNhrB2zlBpKV9mQ6iQCCp9r/JpMUMZn/KjxE=; h=Subject:To:From:Date:From; b=NqliLYf9GgJ/eJP5i4hL8VnW0BPztK6ipsf2UCAjGEJ7qZfnaO9sBVSNYCkNDFsU3 hpBleevxHXz2pWxSK0XbWEK9ErZ2vQOlFBkGBMKSojp4EEdPWT4x0U/SPQwoC+DJF1 l0aSCYMJff2ZRlNVXDfaE+CEjzgpeSH+yGUBBGQ0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20190130-41we5z8j; t=1594647682; bh=EOOEcwVnNhrB2zlBpKV9mQ6iQCCp9r/JpMUMZn/KjxE=; h=Subject:To:From:Date:From; b=nDT0A7RUR/VY8HEqxRCvMnOSaEJvCACk4R5PdWr43T9amIFmpBmNJKFitXxOboTv5 C87MlOnQmrWKz7+bmhSSEmpNDL7tTsIWUxfKhG89jXteSRH/hngRBlySSz02uPOHeJ un+FVtvZbHOiWDJq/9lUnVwEkMA9Ti2gehZQU6vs= X-Auth-ID: abbotti@mev.co.uk Received: by smtp23.relay.iad3b.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 4A9BEA019E; Mon, 13 Jul 2020 09:41:21 -0400 (EDT) Subject: Re: [PATCH] Staging: comedi: driver: Remove condition with no effect To: Greg KH , Saurav Girepunje Cc: hsweeten@visionengravers.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com References: <20200712070628.GA18340@saurav> <20200713133438.GA3122574@kroah.com> From: Ian Abbott Organization: MEV Ltd. Message-ID: <7653a794-d5ed-5d9f-95af-745a88769092@mev.co.uk> Date: Mon, 13 Jul 2020 14:41:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200713133438.GA3122574@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Classification-ID: ab442396-f12e-4f1d-b74c-5c5ca72d8073-1-1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/07/2020 14:34, Greg KH wrote: > 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? One option is to move the comment into the '} else {' part that follows this part. -- -=( Ian Abbott || Web: www.mev.co.uk )=- -=( MEV Ltd. is a company registered in England & Wales. )=- -=( Registered number: 02862268. Registered address: )=- -=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-