From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC56DC31E40 for ; Thu, 15 Aug 2019 04:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C69482067D for ; Thu, 15 Aug 2019 04:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbfHOEu5 (ORCPT ); Thu, 15 Aug 2019 00:50:57 -0400 Received: from bout01.mta.xmission.com ([166.70.11.15]:57249 "EHLO bout01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfHOEu5 (ORCPT ); Thu, 15 Aug 2019 00:50:57 -0400 Received: from mx01.mta.xmission.com ([166.70.13.211]) by bout01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1hy6zX-0004cv-U6; Wed, 14 Aug 2019 22:03:59 -0600 Received: from plesk14-shared.xmission.com ([166.70.198.161] helo=plesk14.xmission.com) by mx01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hy6zX-0000rB-Ji; Wed, 14 Aug 2019 22:03:59 -0600 Received: from hacktheplanet (unknown [8.25.222.2]) by plesk14.xmission.com (Postfix) with ESMTPSA id 4994572842; Thu, 15 Aug 2019 04:03:59 +0000 (UTC) Date: Thu, 15 Aug 2019 00:03:56 -0400 From: Scott Bauer To: Revanth Rajashekar Cc: linux-block@vger.kernel.org, Jonathan Derrick Message-ID: <20190815040356.GB31938@hacktheplanet> References: <20190813214340.15533-1-revanth.rajashekar@intel.com> <20190813214340.15533-3-revanth.rajashekar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813214340.15533-3-revanth.rajashekar@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-XM-SPF: eid=1hy6zX-0000rB-Ji;;;mid=<20190815040356.GB31938@hacktheplanet>;;;hst=mx01.mta.xmission.com;;;ip=166.70.198.161;;;frm=sbauer@plzdonthack.me;;;spf=none X-SA-Exim-Connect-IP: 166.70.198.161 X-SA-Exim-Mail-From: sbauer@plzdonthack.me Subject: Re: [PATCH 2/3] block: sed-opal: Eliminating the dead error X-SA-Exim-Version: 4.2.1 (built Mon, 03 Jun 2019 09:49:16 -0600) X-SA-Exim-Scanned: Yes (on mx01.mta.xmission.com) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Aug 13, 2019 at 03:43:39PM -0600, Revanth Rajashekar wrote: > In the function 'response_parse', num_entries will never be 0 as > slen is checked for 0. Hence, the condition 'if (num_entries == 0)' > can never be true. > > Signed-off-by: Revanth Rajashekar Reviewed-by: Scott Bauer Can we also change the title to something a little more obvious like: Remove always false if statement The current title is ambigious if you single-line look at commits.