Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3263492pxf; Mon, 22 Mar 2021 02:00:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoWsCtHPQnwgsEkaYBmjLS7gaPz1gPWmSTwquJOt0D9dU95MvMk6iLFhf6NGV1LuQZa6zG X-Received: by 2002:a05:6402:2058:: with SMTP id bc24mr24647059edb.243.1616403635338; Mon, 22 Mar 2021 02:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616403635; cv=none; d=google.com; s=arc-20160816; b=sJHkpUvf40k0QCEKqMEbWIeKA57gSLIjwewxitCSxQNxOvaKwvpUb8Lxh+qqUArv2a 5ZwI41UvNKinoiXmIZCXoXAbzyKMEK2dSB4nmiG0TWlP/W8i0dYwXmjCaance0tzbaut 9fwg2SN4fj8GUyGA+3ow5Y8/p5WRFa5eDgyk+FSd8UmKgEpA7zz+5OBNlicccvri8lhQ racAZahSrD9Pv2aqkw9HwL57K8+24MK2pHvIGa3doGphSgNJ6ecdNcws+yBPtjQpIUJq 3+yuXPdPQIiobGvTFBU+2fCPG8SYrh5x1fou4BzHW1icsnHZ9eE2sf1tJ/hgbCMQev9O RWHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=mNtl7wKZCKuA1tKkydoWUzCQ/+4X78f16aDFry4OxBg=; b=jaTkKK2NlbytB7Jx3+6593HuIvDeI5Kk29sYfBwuupEhVF8BfF/cKjpN6NG6cUjjm7 to+Rl2vzPktifNMLkMUQ8KEZZPRsXscmPI2v7kNVkx7E+vliE1g7oz3l0Yfd8TYOQZan v3udGWtVPSaBnl0XyeUvaxMe1djyTWXQ+oFHEDfEfQUR7umWjWKXfe61gYRZRtvHoy4B 4dhfoy2rO2B3sBaKyqT5QGFNau3f9WtaoeCl7WT6L7or5MdkULuFDUWirkKFGAl353FN 2dIZmklrSzN2lyRDebMqK2w9DPX/wCJTebhVXO5T/21u58BNsp3Kh3qOz8X/y9bTAGDR /1TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=AZiVx4MM; 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 q28si11538972edc.389.2021.03.22.02.00.12; Mon, 22 Mar 2021 02:00:35 -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=@walle.cc header.s=mail2016061301 header.b=AZiVx4MM; 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 S229692AbhCVI5S (ORCPT + 99 others); Mon, 22 Mar 2021 04:57:18 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:48423 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhCVI5I (ORCPT ); Mon, 22 Mar 2021 04:57:08 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id E5AEF2223E; Mon, 22 Mar 2021 09:57:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1616403423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mNtl7wKZCKuA1tKkydoWUzCQ/+4X78f16aDFry4OxBg=; b=AZiVx4MM9z7YyEYBV0Nvus1SpSkdDqjRcI69JjvpzcwbJ+SKc+/h9BOcshUr8BzR/TRTNY wWTWEzjrrHE7LIFMpUvaXIHwWEKhySHtQIQTMxhhTdSGseywf5LeAeMrR3Jc9hpWFg3lFR IpT5p+ye+uacSnEDEh+Hi3UA5+11cuc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 22 Mar 2021 09:57:02 +0100 From: Michael Walle To: Tudor Ambarus Cc: vigneshr@ti.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Joe Perches Subject: Re: [PATCH v3 2/2] mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr() In-Reply-To: <20210322075131.45093-3-tudor.ambarus@microchip.com> References: <20210322075131.45093-1-tudor.ambarus@microchip.com> <20210322075131.45093-3-tudor.ambarus@microchip.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <67fc86c6757c19efa448098c83eb62d9@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-22 08:51, schrieb Tudor Ambarus: > - bool return value for spi_nor_check_lock_status_sr(), gets rid of > the return 1, > - introduce temporary variables for better readability. > > Suggested-by: Joe Perches > Signed-off-by: Tudor Ambarus > --- Reviewed-by: Michael Walle -michael