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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57E7BC433F5 for ; Wed, 23 Feb 2022 12:00:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240231AbiBWMBA (ORCPT ); Wed, 23 Feb 2022 07:01:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237934AbiBWMA5 (ORCPT ); Wed, 23 Feb 2022 07:00:57 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE389A4C0 for ; Wed, 23 Feb 2022 04:00:30 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21NC0KuI056218; Wed, 23 Feb 2022 06:00:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1645617620; bh=rb+JKqwrhcprw7ZNPfiTuYpfu5/yjDpPHHSpi/Rs7hc=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=no414x/Q05q1rHwNKGseCW5biMLmHgE/yG6UTxKbj6dgfXkaa4Z8RhcR9V1wB+uAe rwIg33IzMjJTDBkXFiafW0MWDSt/sicI2rZiVzhcv0o9JfyK9wF2g2UuX0yVDH+l3d 8dfYK3LQR+NsaXFwsWtCFpEw7oVvXzl54P2diINo= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21NC0KGJ048375 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Feb 2022 06:00:20 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 23 Feb 2022 06:00:20 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) 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; Wed, 23 Feb 2022 06:00:20 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21NC0Jdj082269; Wed, 23 Feb 2022 06:00:20 -0600 Date: Wed, 23 Feb 2022 17:30:19 +0530 From: Pratyush Yadav To: Michael Walle CC: , , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Subject: Re: [PATCH v4 31/32] mtd: spi-nor: slightly change code style in spi_nor_sr_ready() Message-ID: <20220223120019.a645et7i43kx2lde@ti.com> References: <20220221120809.1531502-1-michael@walle.cc> <20220221120809.1531502-32-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220221120809.1531502-32-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/02/22 01:08PM, Michael Walle wrote: > Now that there is almost no special case code left in > spi_nor_sr_ready(), the return check looks odd. Move the function call > closer to the return code checking. > > Signed-off-by: Michael Walle Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.