Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6052557pxb; Mon, 14 Feb 2022 14:08:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRT2nfMHOOWHjh76/xm1lmxVKTawB0upl2HeqhoiZv3QeMFpqNrD+DILoGDvyxMGh6c4pF X-Received: by 2002:a17:90a:1d:: with SMTP id 29mr860702pja.140.1644876521196; Mon, 14 Feb 2022 14:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644876521; cv=none; d=google.com; s=arc-20160816; b=vtdemqWEbYQm1+XFhyA7BaejLgogCsoAozAVLKy6R2i0iaPAIjVfEC6oK1cTjHhiNt K2pT0bofOsdAK0j0ToGbXQc6HAWjfVsSOcdVExw4w/RctaueyRt9SxWAXio08KjW7av8 u5pcEfUsn8HsUwwKo+rXnmuBqxh32krw8NRwtSAUHCMsadoD/DFaM2O/VJdn2tKq9VSl dQu6siVQmKfjiYh5Skqs5KYNM2BU1YwdKNLK0jkuln3U6b3rsl766hmfq119IiN2YZWx S9lvyvVOYsrQJVJlWZEHfP9kLZ/zVChTYX7gYnEBZNz9FI3MMJzWRXiTdESi0kEIlUGF +DkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pz4wP+n3GDnd5dYw+LjYNjLY5RV4YQxdOk9eQvqnJ04=; b=HUi+SBXtYl15/B3qxnVEKfPz+kDpfGGO8X/VonOuz9V3ZT5ocjeE/h7e8fhUxOHBL9 EbXE2P0MJpNKexInI5hwe9vEQ0+8dlAuEzFoEF79+J1LQnHfXBskd8mnb217+QzICxrR my9q+5UNp7rOmD7vMTgJtb7X37Av/Jv8lwFbY/8XpMUqJK6+yFT5je5rPa/B0zLtR9VP DG4YhTgcVql6Wq+7HhIQrskjIs7vCnWo5HZW/hZakdGfvvRohwTGOD9h0z2lscTbtbzJ TA8oyRzZgouDWtcgqNcyRvQzdYfzhf2iUKTpMLhdtYZawLwZ7G0saxrW3JRd491Zao28 qv7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MNDzLqnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3si943933pgv.4.2022.02.14.14.08.24; Mon, 14 Feb 2022 14:08:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MNDzLqnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbiBNWEf (ORCPT + 99 others); Mon, 14 Feb 2022 17:04:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbiBNWEd (ORCPT ); Mon, 14 Feb 2022 17:04:33 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 022ED1B4468 for ; Mon, 14 Feb 2022 14:04:24 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21EIxpqg099035; Mon, 14 Feb 2022 12:59:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644865191; bh=Pz4wP+n3GDnd5dYw+LjYNjLY5RV4YQxdOk9eQvqnJ04=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=MNDzLqntzEgbm5a6KaOg1vVjSfRpGrC5z+5F3pu4eTtQ6wQzESXxGKTAp7R3N5QRv uw1I+f/h3UlZl58Xl7gLbi5O6dxprmdCds8U1zbRnzqE9bnbEAjLxLGGD6WFkniOuB 4vrz4t8xGB1yRy/nJ9W4ZE2yfxpw/a/5t80GoF9I= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21EIxo3R013282 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Feb 2022 12:59:51 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 14 Feb 2022 12:59:50 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 14 Feb 2022 12:59:50 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21EIxnaE103038; Mon, 14 Feb 2022 12:59:50 -0600 Date: Tue, 15 Feb 2022 00:29:49 +0530 From: Pratyush Yadav To: CC: , , , , , Subject: Re: [PATCH v1 11/14] mtd: spi-nor: spansion: slightly rework control flow in late_init() Message-ID: <20220214185949.lp3jjifypaqyjenp@ti.com> References: <20220202145853.4187726-1-michael@walle.cc> <20220202145853.4187726-12-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/22 03:26AM, Tudor.Ambarus@microchip.com wrote: > On 2/2/22 16:58, Michael Walle wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Increase readability of the code. Instead of returning early if the > > flash size is smaller or equal than 16MiB and then do the fixups for > > larger flashes, do it within the condition. > > > > mm, no, I'm not sure this improves readability, I see the two equivalent. > The original version has the benefit of no indentation. Pratyush? I am fine with both to be honest. But Michael's reasoning does make some sense to me. So, Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.