Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1151742pxb; Fri, 13 Nov 2020 05:41:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyD7FPwVwjpPYjxx0EmlGPXdzlf4U55BzJ9nDB1BhPMwCusfefe0hNF5c4MyfIHxkgxsr8B X-Received: by 2002:aa7:d94c:: with SMTP id l12mr2535038eds.355.1605274906181; Fri, 13 Nov 2020 05:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605274906; cv=none; d=google.com; s=arc-20160816; b=mtO22HS/v++50XcIfaY3j2m0j0lPzJIrmk/Oci2QCBrG+fu2gnW8/rJKwfxY95e7Zu R9wsk3XA/5LArjdNwvPzFN11eYA1ieDshIKaGQuEs3lgMQEIxWR1518qCbaCX/P89oGK 3blkLjSb6ZOv8Eegp9uU3xWCBLkZFHja2snA/Z6QUb5ykanjj4haz5JtZdcQYnijCN0a raXZx2FJsysvVdyuvLo3ql1BOZZOmbxch57C51n7y3XTutKUaXSfetBkqGqnNLeYMvFs 1sq4dhBn0lEvpeC29qAzr6woilZOW1DkOin/JqoBrOOMCMu4RGWlD3Rgkqe9s9dzFdMr WYOg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZXNcKWQV/iEYRYgtaXItr/T7NMzdHwiOF6B3gBdjlXs=; b=of8cWsnzVqgFJh3uWhJB2uS2BabSpwt0iXCxemHWDZPmzXOjr9rZuHlWEIIUfj7TMk KAPVSif9dswf3wmxxzs4CWBTrcue9ghi6uWWC9qi9abpvrGPHkFkA5RBNf3n/8cKDr9U RfG6oAfYlWtKkdmDY0BZkRNe6r3BPKSc71euRj7vN9dwjXZytRSITAUb6yCRlmjVvFUd uldc4Kpg06OluVZeIs0JHi1YCzoAJZGVUlMnDnSuGWLVrXseI3PKc3Coje0nelBuWEra Sh2v767jxuYOi0v5MV0lMuCk4aZc7NqncjGm8CYuzsZHiO/0WwnDq0JO5jD9S+uBsSIo gFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iEzsfCk1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si5899498ejk.692.2020.11.13.05.41.23; Fri, 13 Nov 2020 05:41:46 -0800 (PST) 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=@linaro.org header.s=google header.b=iEzsfCk1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbgKMNhI (ORCPT + 99 others); Fri, 13 Nov 2020 08:37:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbgKMNhH (ORCPT ); Fri, 13 Nov 2020 08:37:07 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2968FC0613D1 for ; Fri, 13 Nov 2020 05:37:07 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id s8so9923872wrw.10 for ; Fri, 13 Nov 2020 05:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=ZXNcKWQV/iEYRYgtaXItr/T7NMzdHwiOF6B3gBdjlXs=; b=iEzsfCk1zLQ2MDNk/U8uXqwMw6R8CD2OZcMKYDv9aRltDGLn4y0PDZ9o2zaiCHNXyG v2FpDwIpb7Yphd1RxG19LrMGWFChFd7HLfeYB6paIaqzOZ6m5SwW9zv34Dx/Pee8DRee B5wVBCcYuwO7gZroB/h5ZZF87gYv+tspvDp6z7ZhbpMwafNnad7Ti/PpVAv11YAKQPNA Nc2BVAgQWmAR2kRq416gSnf1Tkng5kY7GLHbtPC2fxXRSDbmEo0pc50hNCXf/zc2gLhh sBkNfNNw60BfZIGAK3xN4tsBtf5WiNe2DMlTZRdjnrNYfeaNC1jHf+Bje7bmpzvTsxLK 0v8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ZXNcKWQV/iEYRYgtaXItr/T7NMzdHwiOF6B3gBdjlXs=; b=OxQPhSvyAt2MOVGNaU6hTj4R0Nu8GztYZ45OR0GW2OOIg0NfPBfv5bhJA2QVxB1KAh QDWR6dR/nehmeLK8OMPmUNRwApfrVaZgZtUlRlobuOMaVSbDZZP1lsJ+ggZTsaJ+1iNG PDqhlRrLKoQLNBnnTCwf4Qr2IKtLQV8pHzfbDcRfyZ+9h9lh1IIsdQqfyDZvBiMfMHjs I9GVFv7F11gIYNstF1UB66TQoaSB1bRxoTUwq5r3IaYS7XX7WzVYIZsHdAFfm8qS7ONt +k4KZrJyqe2kTlhGgHwWffe6lvcNcYelOsDTBiQscMonKRQjIMyEGAwL79hR6SZ8YGl1 Cm4w== X-Gm-Message-State: AOAM531+/h0z7YKu7FJv79/qVlM03WeA1PdNc4AjjP4YsvhsoM9ctzdM 91e/314tX1wMNnJIl1CVj+WE2w== X-Received: by 2002:adf:84a5:: with SMTP id 34mr3501915wrg.8.1605274625927; Fri, 13 Nov 2020 05:37:05 -0800 (PST) Received: from dell ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id c2sm10395014wmf.47.2020.11.13.05.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:37:05 -0800 (PST) Date: Fri, 13 Nov 2020 13:37:01 +0000 From: Lee Jones To: Amelie Delaunay Cc: Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init Message-ID: <20201113133701.GJ3718728@dell> References: <20201113122725.12971-1-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201113122725.12971-1-amelie.delaunay@st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Nov 2020, Amelie Delaunay wrote: > ret may be 0 so, dev_err_probe should be called only when ret is an error > code. > > Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") > Signed-off-by: Amelie Delaunay > --- > v2: address Lee's comment about error handling area > --- > drivers/mfd/stmfx.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog